Edit report at https://bugs.php.net/bug.php?id=61536&edit=1
ID: 61536 Updated by: u...@php.net Reported by: i dot galic at brainsware dot org Summary: when building with hardening-wrapper, mysqlnd fails with format exceptions Status: Open Type: Bug Package: MySQL related Operating System: Ubuntu PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: Funny compiler... 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, "%s", msg); DBG_RETURN(0); Previous Comments: ------------------------------------------------------------------------ [2012-03-28 00:19:22] i dot galic at brainsware dot org Description: ------------ when building with hardening-wrapper, mysqlnd fails with format exceptions Test script: --------------- add CFLAGS="$CFLAGS -Werror=format-security" Expected result: ---------------- Everything builds happily. Actual result: -------------- php-5.4.0/ext/mysqlnd/mysqlnd_wireprotocol.c: In function âphp_mysqlnd_auth_writeâ: php-5.4.0/ext/mysqlnd/mysqlnd_wireprotocol.c:503:4: error: format not a string literal and no format arguments [-Werror=format-security] cc1: some warnings being treated as errors ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61536&edit=1