MantisBT - CMake
View Issue Details
0014176CMakeCMakepublic2013-05-28 10:342013-11-04 09:33
YYrhs 
Brad King 
normaltrivialalways
closedfixed 
CMake 2.8.11 
CMake 2.8.11.1CMake 2.8.11.1 
0014176: passing long paths via env var CMAKE_LIBRARY_PATH or CMAKE_INCLUDE_PATH makes cmake segfault
I passed maybe 20 paths separated by ' ' instead of ':' by accident.
The result was cmSystemTools::FileIsDirectory segfaulting because memcpy does not check that the strlen(name) is smaller than MAX_PATH.

The fix is trivial: print a warning and return false in that case or such
No tags attached.
Issue History
2013-05-28 10:34YYrhsNew Issue
2013-05-28 11:38Brad KingNote Added: 0033145
2013-05-28 11:38Brad KingAssigned To => Brad King
2013-05-28 11:38Brad KingStatusnew => assigned
2013-05-30 08:59Brad KingNote Added: 0033152
2013-05-30 08:59Brad KingStatusassigned => resolved
2013-05-30 08:59Brad KingResolutionopen => fixed
2013-05-30 08:59Brad KingFixed in Version => CMake 2.8.12
2013-05-30 08:59Brad KingTarget Version => CMake 2.8.12
2013-06-07 15:16Robert MaynardFixed in VersionCMake 2.8.12 => CMake 2.8.11.1
2013-06-07 15:16Robert MaynardTarget VersionCMake 2.8.12 => CMake 2.8.11.1
2013-11-04 09:33Robert MaynardNote Added: 0034366
2013-11-04 09:33Robert MaynardStatusresolved => closed

Notes
(0033145)
Brad King   
2013-05-28 11:38   
Ugh, that was inherited from some legacy code. Thanks for reporting, will fix.
(0033152)
Brad King   
2013-05-30 08:59   
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=045d6ae0 [^]
(0034366)
Robert Maynard   
2013-11-04 09:33   
Closing resolved issues that have not been updated in more than 4 months.