Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream two pecoff.c soundness fixes from rust-lang/rust #6

Closed
wants to merge 2 commits into from

Conversation

alexcrichton
Copy link

Hello! We've been using libbacktrace for quite some time in rust-lang/rust, and we've accumulated two small soundness fixes on the Windows side of things and figured it'd be good to send them upstream! Please let me know if anythings needs updating!

In rust-lang/rust#39468 it was discovered that this could cause a crash in
libbacktrace due to freeing uninitialized memory, and this specific instance was
fixed in rust-lang/rust#39509
This updates the local declaration of `str_size` to always be 4 bytes instead of
platform-dependent as its initialization later on only fills in 4 bytes instead
of all the bytes of `size_t`.

Originally reported as rust-lang/rust#28447 this was fixed in
rust-lang/rust#30908
@ghost
Copy link

ghost commented Jan 25, 2018

fixed by 4300eed ?

@ianlancetaylor
Copy link
Owner

Thanks. I've made these fixes in a different way.

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