[cmake-developers] [CMake 0014882]: cmake: strlen(): cpack killed by SIGSEGV
Mantis Bug Tracker
mantis at public.kitware.com
Wed Apr 16 12:47:42 EDT 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14882
======================================================================
Reported By: Orion Poplawski
Assigned To:
======================================================================
Project: CMake
Issue ID: 14882
Category: CPack
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-04-16 12:47 EDT
Last Modified: 2014-04-16 12:47 EDT
======================================================================
Summary: cmake: strlen(): cpack killed by SIGSEGV
Description:
Fedora 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
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-04-16 12:47 Orion PoplawskiNew Issue
======================================================================
More information about the cmake-developers
mailing list