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

From: Date: Tue, 04 Mar 2014 19:53:32 +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-76328@lists.php.net to get a copy of this message
Commit: 43d220603c4cec99aae9394fb7bd05bed28757a6 Author: Anatol Belski <ab@php.net> Thu, 20 Feb 2014 18:53:53 +0100 Committer: Stanislav Malyshev <stas@php.net> Tue, 4 Mar 2014 11:53:32 -0800 Parents: 0658e65f644b0b6cad139d64bcadd2d0e8fcdb9a Branches: PHP-5.4.26 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=43d220603c4cec99aae9394fb7bd05bed28757a6 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 (#76328) next »