View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014882CMakeCPackpublic2014-04-16 12:472014-10-06 10:33
ReporterOrion Poplawski 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformLinuxOSFedoraOS Version20
Product VersionCMake 2.8.12.2 
Target VersionCMake 3.0Fixed in VersionCMake 3.0 
Summary0014882: cmake: strlen(): cpack killed by SIGSEGV
DescriptionFedora bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1088321 [^]

Apparently std::string += NULL results in a segfault. No checks are done in cmArchiveWrite that archive_error_string() does not return NULL:

This is where this is happening (line 294 in 2.8.12.2):

    if(archive_write_data(this->Archive, buffer, nnext) != nnext_s)
      {
      this->Error = "archive_write_data: ";
      this->Error += archive_error_string(this->Archive);
      return false;
      }

We're running with libarchive 3.1.2
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0035729)
Brad King (manager)
2014-04-16 13:14

Ugh, thanks. This should fix it:

 cmArchiveWrite: Handle NULL error string
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b508de59 [^]
(0035736)
Brad King (manager)
2014-04-17 10:09

The change in 0014882:0035729 has been merged to the 'release' branch in preparation for 3.0.0-rc4.
(0036980)
Robert Maynard (manager)
2014-10-06 10:33

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-04-16 12:47 Orion Poplawski New Issue
2014-04-16 13:14 Brad King Note Added: 0035729
2014-04-17 10:09 Brad King Note Added: 0035736
2014-04-17 10:09 Brad King Assigned To => Brad King
2014-04-17 10:09 Brad King Status new => resolved
2014-04-17 10:09 Brad King Resolution open => fixed
2014-04-17 10:09 Brad King Fixed in Version => CMake 3.0
2014-04-17 10:09 Brad King Target Version => CMake 3.0
2014-10-06 10:33 Robert Maynard Note Added: 0036980
2014-10-06 10:33 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team