summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2013-05-31 08:39:32 +0200
committerRemi Collet <remi@php.net>2013-05-31 08:39:32 +0200
commit1c623e3b07128e78362911ff5754e7eee57fa8bb (patch)
tree7681d1d0016601db2ee70dc3977f0e97a316c47c /sapi/cli/php_cli.c
parent13e5c97ffd75821c01bbec79c1d2233c50d36b0e (diff)
downloadphp-git-1c623e3b07128e78362911ff5754e7eee57fa8bb.tar.gz
Fixed Bug #64949 (Buffer overflow in _pdo_pgsql_error)
There is a lot of call such as: pdo_pgsql_error(dbh, PGRES_FATAL_ERROR, "Copy command failed"); Where the 3rd paramater is a error message string where a sqlstate (5 chars) is expected. This cause a segfault in copy_from.phpt and copy_to.phpt. This is only a sanity check to avoid buffer overflow, but obviously this calls need to be fixed (using NULL or a correct sqlstate).
Diffstat (limited to 'sapi/cli/php_cli.c')
0 files changed, 0 insertions, 0 deletions