Skip to content

Commit

Permalink
Another check to cgats
Browse files Browse the repository at this point in the history
Again, pointless but for fuzzer hapiness.
  • Loading branch information
mm2 committed Nov 8, 2023
1 parent df35632 commit c3c1ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmscgats.c
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,7 @@ char* GetData(cmsIT8* it8, int nSet, int nField)
int nSamples = t -> nSamples;
int nPatches = t -> nPatches;

if (nSet >= nPatches || nField >= nSamples)
if (nSet < 0 || nSet >= nPatches || nField < 0 || nField >= nSamples)
return NULL;

if (!t->Data) return NULL;
Expand Down

0 comments on commit c3c1ec2

Please sign in to comment.