]> granicus.if.org Git - php/commit
Fix stack underflow in phar
authorAnatol Belski <ab@php.net>
Mon, 6 Aug 2018 20:35:11 +0000 (22:35 +0200)
committerAnatol Belski <ab@php.net>
Thu, 30 Aug 2018 17:33:07 +0000 (19:33 +0200)
commit7fb7869e13999f419787f56340ca4b4dbbb4eef8
tree2bf4fbec7abebc5bf76ab8ae2941d8c92149a530
parentc1729272b17a1fe893d1a54e423d3b71470f3ee8
Fix stack underflow in phar

The checks can issue reads below and above the temporary buffer. A read
itself doesn't seem dangerous, but the condition result can be
arbitrary. Such reads have to be avoided. Likely this patch should be
backported.

(cherry picked from commit b053beee7efb64b8e439fb3639de839e615ba89c)
ext/phar/phar.c