com php-src: fixed leak introduced after CVE/upgrade: ext/fileinfo/libmagic/softmagic.c

From: Date: Wed, 05 Mar 2014 09:52:05 +0000
Subject: com php-src: fixed leak introduced after CVE/upgrade: ext/fileinfo/libmagic/softmagic.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76339@lists.php.net to get a copy of this message
Commit: 61bcea70199b94d057ff60fb666a279376c8af2d Author: Anatol Belski <ab@php.net> Thu, 20 Feb 2014 18:53:53 +0100 Committer: Julien Pauli <jpauli@php.net> Wed, 5 Mar 2014 10:52:05 +0100 Parents: 46996a68a3996777bac94cc4af4935e024804267 Branches: PHP-5.5.10 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=61bcea70199b94d057ff60fb666a279376c8af2d Log: fixed leak introduced after CVE/upgrade Changed paths: M ext/fileinfo/libmagic/softmagic.c Diff: diff --git a/ext/fileinfo/libmagic/softmagic.c b/ext/fileinfo/libmagic/softmagic.c index 7c5f628..33970e5 100644 --- a/ext/fileinfo/libmagic/softmagic.c +++ b/ext/fileinfo/libmagic/softmagic.c @@ -1701,6 +1701,8 @@ mget(struct magic_set *ms, const unsigned char *s, struct magic *m, return -1; if (file_printf(ms, "%s", rbuf) == -1) return -1; + } + if (rbuf) { efree(rbuf); } return rv;

« previous php.cvs (#76339) next »