Skip to content

fix: refuse a pax length that overflows - #315

Merged
HaoZeke merged 1 commit into
developfrom
fix/pax-record-length
Nov 27, 2026
Merged

HaoZeke merged 1 commit into
developfrom
fix/pax-record-length

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

fix: refuse a pax length that overflows

A pax record whose length does not fit after the bytes already read
made pax_records add index and length unchecked. Debug builds
panic on that add, so eb-cvmfs exits 101 instead of 2. Reject the
length the same way as any other short record.

A pax record whose length does not fit after the bytes already read
made `pax_records` add `index` and `length` unchecked. Debug builds
panic on that add, so `eb-cvmfs` exits 101 instead of 2. Reject the
length the same way as any other short record.
@HaoZeke
HaoZeke merged commit c68a0ac into develop Nov 27, 2026
8 checks passed
@HaoZeke
HaoZeke deleted the fix/pax-record-length branch November 27, 2026 04:55
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