Bug #61536 [Opn]: when building with hardening-wrapper, mysqlnd fails with format exceptions

From: Date: Wed, 02 May 2012 14:52:31 +0000
Subject: Bug #61536 [Opn]: when building with hardening-wrapper, mysqlnd fails with format exceptions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-170093@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61536&edit=1 ID: 61536 Updated by: uw@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

« previous php.bugs (#170093) next »