summaryrefslogtreecommitdiff
path: root/ext/json/php_json.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-09-19 20:12:24 +0200
committerAnatol Belski <ab@php.net>2014-09-19 20:12:24 +0200
commit5d9403f56c14fefafa558b7de45f132a4d3f5fde (patch)
treea16746b253a5dae6406910019bf0e96c8919104c /ext/json/php_json.h
parentb8470e19e47bbab40c30d20f231ddd694c0ca669 (diff)
downloadphp-git-5d9403f56c14fefafa558b7de45f132a4d3f5fde.tar.gz
fix possible array underflow
there are multiple issues with this code - php_stream_read() returns an unsigned val, so is >= 0 - if it read less than sizeof(a) bytes, the function operates on garbage - result->channels is an unsigned val, so >= 0
Diffstat (limited to 'ext/json/php_json.h')
0 files changed, 0 insertions, 0 deletions