Skip to content

Commit e55c000

Browse files
authored
Simplify RankFilter.c check (#9662)
1 parent 5168e0d commit e55c000

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libImaging/RankFilter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ MakeRankFunction(UINT8) MakeRankFunction(INT32) MakeRankFunction(FLOAT32)
7373
}
7474

7575
/* malloc check ok, for overflow in the define below */
76-
if (size > INT_MAX / size || size > INT_MAX / (size * (int)sizeof(FLOAT32))) {
76+
if (size > INT_MAX / (size * (int)sizeof(FLOAT32))) {
7777
return (Imaging)ImagingError_ValueError("filter size too large");
7878
}
7979

0 commit comments

Comments
 (0)