libnsgif: Update to latest upstream (#3142)
Allows clients to know if the scan encountered a truncated image.
This commit is contained in:
parent
2189e49dc7
commit
b32bc70de7
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue