Skip to content

Commit 0293022

Browse files
committed
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
1 parent af6857c commit 0293022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pecoff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ coff_add (struct backtrace_state *state, int descriptor,
602602
const b_coff_section_header *sects;
603603
struct backtrace_view str_view;
604604
int str_view_valid;
605-
size_t str_size;
605+
uint32_t str_size;
606606
off_t str_off;
607607
struct backtrace_view syms_view = {0};
608608
off_t syms_off;

0 commit comments

Comments
 (0)