From 817ac63d5d92ea8eaa50b23d373269fad05dc777 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 24 Jul 2017 21:59:01 -0700 Subject: [PATCH] Fix a use of uninitialized bytes in pecoff.c 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 --- pecoff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pecoff.c b/pecoff.c index 677e1cd..d4b86b0 100644 --- a/pecoff.c +++ b/pecoff.c @@ -595,7 +595,7 @@ coff_add (struct backtrace_state *state, int descriptor, const b_coff_section_header *sects; struct backtrace_view str_view; int str_view_valid; - size_t str_size; + uint32_t str_size; off_t str_off; struct backtrace_view syms_view = {0}; off_t syms_off;