Commit 74495943 authored by Jacob Boerema's avatar Jacob Boerema
Browse files

app: check for invalid offsets when loading XCF files

More safety checks for detecting broken xcf files, also based on examining
issue #8230.

After reading an offset where layer, channel, etc. data is stored, we
add a check to make sure that offset is not before where we read the
offset value. Because the data is always written after the offset that
points to it.

(cherry picked from commit a8428692)
parent e7d4b580
Pipeline #405286 passed with stages
in 31 minutes and 33 seconds