Skip to content

Commit

Permalink
Fix heap-buffer-overflow as described in issue #1049
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Apr 28, 2024
1 parent acd253f commit 9c5c513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/c/pe_reader.c
Expand Up @@ -131,7 +131,7 @@ int main(int argc, char **argv) {
section->entropy
);

if (section->size > 3 && section->content != NULL) {
if (section->content_size > 3 && section->content != NULL) {
fprintf(stdout, "content[0..3]: %02x %02x %02x\n",
section->content[0], section->content[1], section->content[2]);
}
Expand Down

0 comments on commit 9c5c513

Please sign in to comment.