gif

read/write GIFs
git clone git://bvnf.space/gm.git
Log | Files | Refs | README

commit c9dfbfd24f852142ef3298cff9d8598e336fd36f
parent acf7073c322f297f89a531271169a5603253ed53
Author: phoebos <ben@bvnf.space>
Date:   Wed,  1 Sep 2021 23:02:12 +0100

check return value of gif_decode_image

Diffstat:
Mgif.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gif.c b/gif.c @@ -190,7 +190,10 @@ gif_decode(unsigned char *buf, size_t len) { exit(FAIL_SYS); } img->lct->len = g.gct->len; - gif_decode_image(img, g.gct, buf); + int ret; + ret = gif_decode_image(img, g.gct, buf); + if (ret != 0) + return ret; } break; case ';':