summaryrefslogtreecommitdiff
path: root/main/php_syslog.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2018-06-30 16:29:29 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2018-06-30 16:29:30 +0200
commitae04110032702622d59c21f9e615120d9479157a (patch)
tree3990f71362820f2479eaed364d5546d4be723c73 /main/php_syslog.c
parent962706d16c29ec6dd5ec3a78edae9e8907bca20a (diff)
downloadphp-git-ae04110032702622d59c21f9e615120d9479157a.tar.gz
Fix #71848: getimagesize with $imageinfo returns false
Some JFIF images contain empty APP segments, i.e. those which consist only of the marker bytes and the length, but without actual content. It appears to be doubtful to have empty APP segments, but we should apply the robustness principle, and accept these, instead of simply failing in this case. We choose to add empty APP segments to $imageinfo with an empty string as value, instead of NULL, or even to omit these segments altogether. This patch also fixes the potential issue that php_stream_read() might not read the supposed number of bytes, which could result in garbage to be added to the read value.
Diffstat (limited to 'main/php_syslog.c')
0 files changed, 0 insertions, 0 deletions