php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65408 error: format not a string literal and no format arguments [-Werror=format-secu
Submitted: 2013-08-07 08:02 UTC Modified: 2014-02-28 12:22 UTC
From: ondrej@php.net Assigned: uw (profile)
Status: Closed Package: mysqlnd_ms (PECL)
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ondrej@php.net
New email:
PHP Version: OS:

 

 [2013-08-07 08:02 UTC] ondrej@php.net
Description:
------------
Debian defaults to using -Werror=format-security when hardening the package and 
that results to compile error.

The patch is very simple (and attached).

Expected result:
----------------
File compiles OK.

Actual result:
--------------
/tmp/buildd/php-mysqlnd-ms-1.5.2/mysqlnd_ms-1.5.2/mysqlnd_ms_config_json.c: In 
function 'mysqlnd_ms_config_json_load_configuration':
/tmp/buildd/php-mysqlnd-ms-1.5.2/mysqlnd_ms-1.5.2/mysqlnd_ms_config_json.c:251:5: 
error: format not a string literal and no format arguments [-Werror=format-
security]
     php_error_docref(NULL TSRMLS_CC, E_WARNING, 
MYSQLND_MS_G(config_startup_error));
     ^
cc1: some warnings being treated as errors
make[1]: *** [mysqlnd_ms_config_json.lo] Error 1

Patches

0001_fix-format-security.patch (last revision 2013-08-07 08:02 UTC by ondrej@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-08-07 08:02 UTC] ondrej@php.net
The following patch has been added/updated:

Patch Name: 0001_fix-format-security.patch
Revision:   1375862567
URL:        https://bugs.php.net/patch-display.php?bug=65408&patch=0001_fix-format-security.patch&revision=1375862567
 [2014-02-28 12:22 UTC] uw@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: uw
 [2014-02-28 12:22 UTC] uw@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 19:01:33 2024 UTC