8000 Reject negative archive member sizes by dajiaohuang · Pull Request #1810 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

Reject negative archive member sizes - #1810

Open
dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/buildid-negative-ar-size
Open

dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/buildid-negative-ar-size

Conversation

@dajiaohuang
Copy link
Copy Markdown

Reject negative member sizes when parsing gccgo archives. A negative size moves the parser offset backwards; a size of -60 repeats the same header indefinitely. This returns the existing malformed archive error instead.

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

0