Skip to content

Commit

Permalink
Fix code scanning alert no. 2619: Multiplication result converted to …
Browse files Browse the repository at this point in the history
…larger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 15102d5 commit 78fff91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdb/fix-and-continue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ find_and_parse_nonlazy_ptr_sect(struct fixinfo *cur,
xmalloc(sizeof(struct file_static_fixups)
* nl_symbol_ptr_count));

buf = (gdb_byte *)xmalloc(nl_symbol_ptr_count * TARGET_ADDRESS_BYTES);
buf = (gdb_byte *)xmalloc((size_t)nl_symbol_ptr_count * TARGET_ADDRESS_BYTES);
wipe = make_cleanup(xfree, buf);

/* The following code to read an array of ints from the target and convert
Expand Down

0 comments on commit 78fff91

Please sign in to comment.