Skip to content

Commit

Permalink
Merge pull request #124 from cooljeanius/autofix/alert-2621-b6d8564337
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 2621: Multiplication result converted to larger type
  • Loading branch information
cooljeanius authored Oct 1, 2024
2 parents 8764bc0 + c652aea commit 6179a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdb/symfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5543,7 +5543,7 @@ simple_overlay_update_1(struct obj_section *osect)
&& (cache_ovly_table[i][LMA] == bfd_section_lma(obfd, bsect))
&& (cache_ovly_table[i][SIZE] == size))
{
read_target_long_array((cache_ovly_table_base + i * TARGET_LONG_BYTES),
read_target_long_array((cache_ovly_table_base + (unsigned long)i * TARGET_LONG_BYTES),
(unsigned int *)cache_ovly_table[i], 4);
if ((cache_ovly_table[i][VMA] == bfd_section_vma(obfd, bsect))
&& (cache_ovly_table[i][LMA] == bfd_section_lma(obfd, bsect))
Expand Down

0 comments on commit 6179a4e

Please sign in to comment.