Skip to content

Move marker check before header 2 access#2

Merged
pappadf merged 1 commit into
mainfrom
fix/sit-marker-before-header2
Apr 13, 2026
Merged

Move marker check before header 2 access#2
pappadf merged 1 commit into
mainfrom
fix/sit-marker-before-header2

Conversation

@pappadf
Copy link
Copy Markdown
Owner

@pappadf pappadf commented Apr 13, 2026

The 0xFFFFFFFF special-marker check was performed after reading header 2 in the folder path, and separately in the file path. A marker entry at the end of an archive may have no bytes following header 1, so reading header 2 would access past the archive boundary.

Consolidate both marker checks into a single block immediately after header 1 parsing, before any header 2 access. Update sit.md to document that marker entries do not carry a header 2 block.

The 0xFFFFFFFF special-marker check was performed after reading header 2
in the folder path, and separately in the file path. A marker entry at the
end of an archive may have no bytes following header 1, so reading header 2
would access past the archive boundary.

Consolidate both marker checks into a single block immediately after
header 1 parsing, before any header 2 access. Update sit.md to document
that marker entries do not carry a header 2 block.
@pappadf pappadf merged commit b09b4c8 into main Apr 13, 2026
1 check passed
@pappadf pappadf deleted the fix/sit-marker-before-header2 branch April 13, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant