|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-04-07 19:51 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2015-04-07 19:51 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 15:00:02 2025 UTC |
Description: ------------ The build fails with -Werror=format-security Reproduce code: --------------- /home/oden/RPM/BUILD/colorer-0.7/colorer.cpp:628: error: format not a string literal and no format arguments Expected result: ---------------- It should build, and also preferably without all those compiler warnings. Actual result: -------------- Proposed fix: --- colorer.cpp 2005-11-21 08:26:13.000000000 +0100 +++ colorer.cpp.oden 2009-01-04 12:46:43.000000000 +0100 @@ -625,7 +625,7 @@ static int colorer_do_highlight(INTERNAL catch(Exception & e) { php_error(E_WARNING, "can't open file '%s' for writing:\n", outFile->getChars()); - php_error(E_WARNING, e.getMessage()->getChars()); + php_error(E_WARNING, "%s", e.getMessage()->getChars()); return FAILURE; } }