ase-parser icon indicating copy to clipboard operation
ase-parser copied to clipboard

Fix possible out of range read when ICC color profile is present

Open Ebunix opened this issue 3 years ago • 0 comments

Files with embedded ICC profiles could cause issues in some cases, as their profile chunk wasn't parsed properly. This would lead to an out of bounds read beyond the file end. Not every file seems to cause this problem, so I've attached a file that causes said error.

icc_test.zip

This change fixes the parsing of color profile chunks, which previously didn't properly skip over embedded ICC profile data if it was present.

Ebunix avatar Nov 17 '22 01:11 Ebunix