Skip to content

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

Closed
alexcrichton wants to merge 2 commits intoianlancetaylor:masterfrom
alexcrichton:fixes
Closed

Upstream two pecoff.c soundness fixes from rust-lang/rust#6
alexcrichton wants to merge 2 commits intoianlancetaylor:masterfrom
alexcrichton:fixes

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