tif_jpeg.c: avoid potential harmless unsigned integer overflow on data->fileoffset in JPEGFixupTagsSubsamplingSkip() by validating earlier. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28200
This commit is contained in:
parent
0f013e5b5a
commit
4ca3e42517
@ -938,7 +938,10 @@ JPEGFixupTagsSubsamplingReadByte(struct JPEGFixupTagsSubsamplingData* data, uint
|
||||
return(0);
|
||||
if (!data->filepositioned)
|
||||
{
|
||||
TIFFSeekFile(data->tif,data->fileoffset,SEEK_SET);
|
||||
if (TIFFSeekFile(data->tif,data->fileoffset,SEEK_SET) == (toff_t)-1)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
data->filepositioned=1;
|
||||
}
|
||||
m=data->buffersize;
|
||||
|
Loading…
Reference in New Issue
Block a user