summaryrefslogtreecommitdiff
path: root/ext/pgsql/php_pgsql.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-09-21 15:46:55 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-09-21 15:46:55 +0200
commitd1bbc39e4cbf3068ac64e8b107814e0bb8ddc762 (patch)
treeee05af3988e27052eac0d7a3c4706c7cbe045afb /ext/pgsql/php_pgsql.h
parent5bb41fa63cec0b25470c8202c58f019929dc29a6 (diff)
downloadphp-git-d1bbc39e4cbf3068ac64e8b107814e0bb8ddc762.tar.gz
pg_unescape_bytea() can only fail on OOM
The implementation did not check for PQunescapeBytea failure correctly, because it checked for a null pointer after estrndup, which certainly cannot happen. Inspection of the PGunescapeBytea implementation has shown that this function can only fail on OOM, so let's check for that explicitly and remove false as a possible return type. While we're here, avoid an unnecessary copy of the result.
Diffstat (limited to 'ext/pgsql/php_pgsql.h')
0 files changed, 0 insertions, 0 deletions