Skip to content

fix out-of-bounds iterator in readStringWcharTag (backport #9310)#9360

Merged
kmilos merged 1 commit into
0.28.xfrom
mergify/bp/0.28.x/pr-9310
Jun 22, 2026
Merged

fix out-of-bounds iterator in readStringWcharTag (backport #9310)#9360
kmilos merged 1 commit into
0.28.xfrom
mergify/bp/0.28.x/pr-9310

Conversation

@mergify

@mergify mergify Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

readStringWcharTag() builds its result from FieldBuf.end() - 3, which points before the start of the buffer when length < 2, so the std::string is constructed from an inverted iterator range. A crafted ASF Content_Description with a 1-byte string length reaches it through contentDescription(). Require length >= 2.


This is an automatic backport of pull request #9310 done by Mergify.

@kmilos kmilos added this to the v0.28.9 milestone Jun 22, 2026
@mergify

mergify Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@kmilos kmilos merged commit 669da3a into 0.28.x Jun 22, 2026
83 of 86 checks passed
@kmilos kmilos deleted the mergify/bp/0.28.x/pr-9310 branch June 22, 2026 16:09
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.

2 participants