Don't store invalid dims (#129)

old-stable24
Varun Patil 2022-10-28 09:48:08 -07:00
parent b0fed474b9
commit 0977b25de2
1 changed files with 4 additions and 0 deletions

View File

@ -269,6 +269,10 @@ class Exif
return [$height, $width];
}
if ($width <= 0 || $height <= 0 || $width > 10000 || $height > 10000) {
return [0, 0];
}
return [$width, $height];
}