diff options
author | Alex Dowad <alexinbeijing@gmail.com> | 2020-05-09 18:16:45 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-14 10:25:37 +0200 |
commit | b983580dd78cbc7e4f0ddb56671f8b4b6631fb3e (patch) | |
tree | 44db8bbbb639aea776601ca555a55ad384c257f0 /sapi/apache2handler/php_functions.c | |
parent | a84cd96e865db795edc72b2799eac5c3c67aadfe (diff) | |
download | php-git-b983580dd78cbc7e4f0ddb56671f8b4b6631fb3e.tar.gz |
Don't leak memory if wrong resource type is passed to proc_open
proc_open can accept stream resources in the descriptorspec, like this:
proc_open("command", array(0 => $resource), $pipes);
Previously, if a resource which was *not* of type "stream" was passed, proc_open would
return without freeing dynamically allocated memory. It's fixed now.
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
0 files changed, 0 insertions, 0 deletions