Skip to content

guard invalid _FloatN width in ParseBuiltinType - #2128

Open
nabhan06 wants to merge 1 commit into
abseil:masterfrom
nabhan06:demangle-floatn-width-guard
Open

guard invalid _FloatN width in ParseBuiltinType#2128
nabhan06 wants to merge 1 commit into
abseil:masterfrom
nabhan06:demangle-floatn-width-guard

Conversation

@nabhan06

Copy link
Copy Markdown
Contributor

the _FloatN branch of ParseBuiltinType passed the parsed width straight to MaybeAppendDecimal, so a crafted symbol with a negative or overflowed width like _ZNK1ScvDFn3_Ev printed punctuation bytes in place of digits; guard it with the same number >= 0 else ? check the sibling _BitInt branch right above already uses.

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