com php-src: Make sure context is set to null to prevent use after free: main/streams/streams.c

From: Date: Mon, 09 Nov 2015 03:58:34 +0000
Subject: com php-src: Make sure context is set to null to prevent use after free: main/streams/streams.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89651@lists.php.net to get a copy of this message
Commit: 6ff014b31cdb30abeb4999de0030342d0109ed91 Author: Caleb Champlin <caleb.champlin@gmail.com> Mon, 2 Nov 2015 21:58:04 +0000 Committer: Xinchen Hui <laruence@gmail.com> Mon, 9 Nov 2015 11:58:34 +0800 Parents: fe12492480237ae504fd49fd6e9d01fb8218e206 Branches: PHP-7..0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6ff014b31cdb30abeb4999de0030342d0109ed91 Log: Make sure context is set to null to prevent use after free Changed paths: M main/streams/streams.c Diff: diff --git a/main/streams/streams.c b/main/streams/streams.c index 3ad44b0..d0f8a44 100644 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -84,6 +84,7 @@ fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream); if (stream->ctx) { zend_list_delete(stream->ctx); + stream->ctx = NULL; } return 0;

« previous php.cvs (#89651) next »