Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed May 22, 2018
1 parent e0abfec commit 6ccb800
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pecoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,9 @@ coff_add (struct backtrace_state *state, int descriptor,
int str_view_valid;
uint32_t str_size;
off_t str_off;
struct backtrace_view syms_view;
// NOTE: upstream doesn't have `{0}`, this is a fix for Rust issue #39468.
// If syms_view is not initialized, then `free(syms_view.base)` may segfault later.
struct backtrace_view syms_view = {0};
off_t syms_off;
size_t syms_size;
int syms_view_valid;
Expand Down

0 comments on commit 6ccb800

Please sign in to comment.