Bug #51224 [Opn->Csd]: Buffer overflows in pdc_odbc driver

From: Date: Sat, 06 Mar 2010 15:46:17 +0000
Subject: Bug #51224 [Opn->Csd]: Buffer overflows in pdc_odbc driver
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148335@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51224&edit=1 ID: 51224 User updated by: dominique-php dot net at leuenberger dot net Reported by: dominique-php dot net at leuenberger dot net Summary: Buffer overflows in pdc_odbc driver -Status: Open +Status: Closed Type: Bug Package: PDO related Operating System: openSUSE 11.3 (devel) PHP Version: 5.3.2 New Comment: Has been fixed in SVN already, commits 284097 and 284099 Previous Comments: ------------------------------------------------------------------------ [2010-03-06 16:21:50] dominique-php dot net at leuenberger dot net Description: ------------ While building with gcc 4.5 the followin 'warnings' can be observed in the build log: 1) In function 'strcpy', inlined from 'odbc_handle_set_attr' at /usr/src/packages/BUILD/php-5.3.0/ext/pdo_odbc/odbc_driver.c:349:10: /usr/include/bits/string3.h:107:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer /usr/src/packages/BUILD/php-5.3.0/ext/pdo_odbc/odbc_stmt.c: In function 'odbc_stmt_param_hook': 2) In function 'strcpy', inlined from 'odbc_stmt_get_attr' at /usr/src/packages/BUILD/php-5.3.0/ext/pdo_odbc/odbc_stmt.c:798:10: /usr/include/bits/string3.h:107:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer In function 'strcpy', inlined from 'odbc_stmt_set_param' at /usr/src/packages/BUILD/php-5.3.0/ext/pdo_odbc/odbc_stmt.c:766:10: /usr/include/bits/string3.h:107:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer nation buffer Test script: --------------- regular build using gcc 4.5 reveals it. Expected result: ---------------- No buffer overflow warnings ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51224&edit=1

« previous php.bugs (#148335) next »