com php-src: add error check: ext/gd/libgd/gd_webp.c

From: Date: Mon, 07 Mar 2016 15:26:01 +0000
Subject: com php-src: add error check: ext/gd/libgd/gd_webp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91281@lists.php.net to get a copy of this message
Commit: 0fccddba75c68e7dd70f26ee595995bffba6dfe1 Author: Anatol Belski <ab@php.net> Mon, 7 Mar 2016 16:26:01 +0100 Parents: 860dc17ab758683a121d66a625308bdfbbcad5c4 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0fccddba75c68e7dd70f26ee595995bffba6dfe1 Log: add error check Changed paths: M ext/gd/libgd/gd_webp.c Diff: diff --git a/ext/gd/libgd/gd_webp.c b/ext/gd/libgd/gd_webp.c index eef65f7..e85e9d9 100644 --- a/ext/gd/libgd/gd_webp.c +++ b/ext/gd/libgd/gd_webp.c @@ -14,6 +14,8 @@ gdImagePtr gdImageCreateFromWebp (FILE * inFile) { gdImagePtr im; gdIOCtx *in = gdNewFileCtx(inFile); + if (!in) + return 0; im = gdImageCreateFromWebpCtx(in); in->gd_free(in);

« previous php.cvs (#91281) next »