fix(psd): detect implausibly large ICC, Exif, XMP before allocating#5288
fix(psd): detect implausibly large ICC, Exif, XMP before allocating#5288lgritz wants to merge 1 commit into
Conversation
Signed-off-by: Larry Gritz <lg@larrygritz.com>
|
I wrote this code with my own hands and brain (hence, no tool disclosure), but I did ask Claude what a reasonable limit was, and got this hilarious conversation / cautionary tale: Claude:
LG:
Claude:
|
10MB was conservatively chosen as big enough that anything larger is definitely bogus for an ICC, Exif, or XMP block in a PSD file.