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

From: Date: Mon, 02 Nov 2015 21:58:04 +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-89652@lists.php.net to get a copy of this message
Commit: f2ad7e73bd380be502cda0dad4d184adc25f58a3 Author: Caleb Champlin <caleb.champlin@gmail.com> Mon, 2 Nov 2015 21:58:04 +0000 Parents: a79a504b6da0f1a9420f4611e2a23f46f348f722 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f2ad7e73bd380be502cda0dad4d184adc25f58a3 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 (#89652) next »