From b32bc70de7c4a4c07152da31ac1920172f2fc375 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 5 Nov 2022 11:16:23 +0000 Subject: [PATCH] libnsgif: Update to latest upstream (#3142) Allows clients to know if the scan encountered a truncated image. --- libvips/foreign/libnsgif/README.md | 2 +- libvips/foreign/libnsgif/gif.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libvips/foreign/libnsgif/README.md b/libvips/foreign/libnsgif/README.md index 3cc64ec3..786739fe 100644 --- a/libvips/foreign/libnsgif/README.md +++ b/libvips/foreign/libnsgif/README.md @@ -8,7 +8,7 @@ but within the libvips build system. Run `./update.sh` to update this copy of libnsgif from the upstream repo. It will also patch libnsgif.c to prevent it modifying the input. -Last updated 4 Nov 2022. +Last updated 5 Nov 2022. # To do diff --git a/libvips/foreign/libnsgif/gif.c b/libvips/foreign/libnsgif/gif.c index 2dc631ee..8655bdbc 100644 --- a/libvips/foreign/libnsgif/gif.c +++ b/libvips/foreign/libnsgif/gif.c @@ -1234,7 +1234,7 @@ static nsgif_error nsgif__parse_image_data( /* Check if the frame data runs off the end of the file */ if (block_size > len) { frame->lzw_data_length += len; - return NSGIF_OK; + return NSGIF_ERR_END_OF_DATA; } len -= block_size;