summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-06-08 23:19:43 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-06-08 23:19:43 +0200
commit12c59f6660706321f9d42c55421ff6864439c8b7 (patch)
tree0299fd1b063fac265d0b5a84eb1331ec831d8862 /ext/reflection/php_reflection.c
parentceae81665cc6d8dadf2103a3f9266150b076ab2a (diff)
downloadphp-git-12c59f6660706321f9d42c55421ff6864439c8b7.tar.gz
Fix #74267: segfault with streams and invalid data
If the current character is a line break character, it cannot be a tab or space character, so we would always fail with an invalid sequence error. Obviously, these `scan_stat == 4` conditions are meant to be exclusive. Furthermore, if `in_pp == NULL || in_left_p == NULL` is true, we hit a segfault if we are not returning right away. Obviously, the additional constraints don't make sense, so we remove them.
Diffstat (limited to 'ext/reflection/php_reflection.c')
0 files changed, 0 insertions, 0 deletions