-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I received a segfault during generation with the attached list-file.
Attached is a patch to master which avoids the null pointer access
causing it, but there may be a better fix.

- -- 
Thanks,
Justin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJVvlTwAAoJEJaK8jpvPrt2T8gP/0Xes6K5sYSKil2Dy4rSRMWI
85ZbuT3FqDoGeR43xcIEo0PJwX7WkT3pQGmg8XdaQCo0hyIhnlWQ3dWRPI4eb+XV
GtN5jN0QP+aX5sH877MRySBo3jYva/7xD75ua8cXZRpFfLv0Q8JbxByXduAN13Dv
UvMYorG7B9lDgtNzu1VZVd9oT3AX/eav5mTsMjyGoMIiyLpFmp6XmCk68NJT5nBv
qUkZsvsPVARb9jcXSjf4I0/yDO4t6DuxDs8QYLk+XvSoG+n2h33HR6kIEYib/nRT
CP6bKgItIa4Zdc0Xnoa5zkztv8WYQtFfOWUcdmmD8i93ys5m0vJ+ioxyiFqVfO+g
LK0giWQSLQNLXLp57cgFLx+MKZSvo3pY5JbfajuNyfauwRVh/7BQWD/1j21Gl5Bg
Qj5uCiT/F+TjwOg/UADf1fd+gmQgn6kp7lf25WDuzYK8gbALzValSIc791h/b2MT
KYeqha2fpmtMb/WB1xSWwYvY/q6AawoPdWUIeSQRGUIQgo/wpJOM1xUYrigDUzgk
FH1EXB25f70Qh3+79nH1MhTc0PY5OwwP+4ZQ0s1GvHecja6q8aogdGV/EjJZHV8r
+6P/XwmStePMuSgw5EJZaJapRKmdBwweJ6s2luTLTyL3iPWZ5ufuz3RRvhTGwh38
hBmjaR+oVTG/AsSBkHyj
=NfIW
-----END PGP SIGNATURE-----
cmake_minimum_required(VERSION 3.0)

find_package(Qt4 REQUIRED)

file(GENERATE OUTPUT test.cmake CONTENT $<TARGET_PDB_FILE:Qt4::QtGui>)
message(STATUS "done")


From 9222be04dd67b5457992e75c14c0efb6e4a3c845 Mon Sep 17 00:00:00 2001
From: Justin Borodinsky <justin.borodin...@gmail.com>
Date: Sun, 2 Aug 2015 12:21:53 -0500
Subject: [PATCH 1/1] cmTaget::ComputeLinkClosure: check for null
 implementation

---
 Source/cmTarget.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index cf33791..fd778bd 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -3356,6 +3356,10 @@ void cmTarget::ComputeLinkClosure(const std::string& config,
   // Get languages built in this target.
   UNORDERED_SET<std::string> languages;
   LinkImplementation const* impl = this->GetLinkImplementation(config);
+  if (!impl)
+    {
+    return;
+    }
   for(std::vector<std::string>::const_iterator li = impl->Languages.begin();
       li != impl->Languages.end(); ++li)
     {
-- 
2.4.6

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to