Skip to content

Commit

Permalink
bug: out params that are double pointers need to be init to NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharpiro committed Sep 1, 2024
1 parent a1e960e commit 028ffbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/loader/elf_tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ static bool get_dynamic_data(
if (dynamic_data_ptr == NULL) {
BAIL("dynamic_data_ptr was null\n");
}
*dynamic_data_ptr = NULL;

const struct SectionHeader *relocation_header =
find_section_header(section_headers, section_headers_len, ".rel.plt");
Expand Down

0 comments on commit 028ffbc

Please sign in to comment.