Edit report at https://bugs.php.net/bug.php?id=60948&edit=1
ID: 60948 Updated by: johan...@php.net Reported by: ond...@php.net Summary: mysqlnd FTBFS when -Wformat-security is enabled -Status: Open +Status: Assigned Type: Bug Package: MySQL related Operating System: Any PHP Version: 5.4.0RC6 -Assigned To: +Assigned To: mysql Block user comment: N Private report: N New Comment: Patch looks good, checking with RM before committing. Previous Comments: ------------------------------------------------------------------------ [2012-02-01 13:10:40] ond...@php.net Description: ------------ $ svn diff Index: ext/mysqlnd/mysqlnd_wireprotocol.c =================================================================== --- ext/mysqlnd/mysqlnd_wireprotocol.c (revision 322993) +++ ext/mysqlnd/mysqlnd_wireprotocol.c (working copy) @@ -500,7 +500,7 @@ const char * const msg = "Authentication data too long. " "Won't fit into the buffer and will be truncated. Authentication will thus fail"; SET_CLIENT_ERROR(*conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, msg); - php_error_docref(NULL TSRMLS_CC, E_WARNING, msg); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", msg); DBG_RETURN(0); } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60948&edit=1