Bug 27131 - Division by zero in elf.c
Summary: Division by zero in elf.c
Status: RESOLVED DUPLICATE of bug 26521
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.35
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-30 21:14 UTC by Sirus Shahini
Modified: 2022-06-22 06:29 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
Sample input (6.28 KB, model/x.stl-binary)
2020-12-30 21:14 UTC, Sirus Shahini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sirus Shahini 2020-12-30 21:14:50 UTC
Created attachment 13085 [details]
Sample input

Hello,

Our fuzzer detected a Division-By-Zero bug in "_bfd_elf_write_secondary_reloc_section(..)" function in "bfd/elf.c".

The fuzzer-generated input that can trigger the bug has been attached.
The bug can be triggered using "strip" program (V 2.35.1) and by passing "--strip-unneeded" option.

Regards
Comment 1 Alan Modra 2020-12-31 12:52:28 UTC
Doesn't reproduce on master.  Guessing this is a dup of pr26521.

*** This bug has been marked as a duplicate of bug 26521 ***