Upstream two pecoff.c soundness fixes from rust-lang/rust#6
Closed
alexcrichton wants to merge 2 commits intoianlancetaylor:masterfrom
Closed
Upstream two pecoff.c soundness fixes from rust-lang/rust#6alexcrichton wants to merge 2 commits intoianlancetaylor:masterfrom
alexcrichton wants to merge 2 commits intoianlancetaylor:masterfrom
Conversation
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
|
fixed by 4300eed ? |
Owner
|
Thanks. I've made these fixes in a different way. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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!