ase-parser
ase-parser copied to clipboard
Fix possible out of range read when ICC color profile is present
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.
This change fixes the parsing of color profile chunks, which previously didn't properly skip over embedded ICC profile data if it was present.