libnsgif: Update to latest upstream (#3142)

Allows clients to know if the scan encountered a truncated image.
This commit is contained in:
Michael Drake 2022-11-05 11:16:23 +00:00 committed by GitHub
parent 2189e49dc7
commit b32bc70de7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;