patterns/jpeg: added support for extra data in APP0 section (#417)

Apple Multi-Picture Format JPEGs often have 4 extra bytes in the APP0 section. The pattern now skips any extra bytes beyond the fixed APP0 data.

Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
Kris Dekeyser
2025-08-31 11:40:27 +02:00
committed by GitHub
parent 284ca8d325
commit d95390ea42

View File

@@ -145,6 +145,7 @@ struct Segment {
u16 length;
if (marker == Marker::APP0) {
APP0 data;
u8 xtra_data[length - sizeof(length) - sizeof(data)];
} else if (marker == Marker::APP14) {
APP14 data;
} else if (marker == Marker::COM) {