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

Reply via email to