[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22166] big memory allocation failure
From: |
amodra at gmail dot com |
Subject: |
[Bug binutils/22166] big memory allocation failure |
Date: |
Fri, 22 Sep 2017 23:33:23 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22166
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2017-09-23
Assignee|unassigned at sourceware dot org |amodra at gmail dot com
Ever confirmed|0 |1
--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
I'm inclined to think that fuzzed binaries that cause huge memory allocations
are not something that the binutils project should be concerned about. Your
binary says it has 3909091329 verneed entries, which on a 64-bit host are
stored internally in a 64 byte struct. That's 250181845056 bytes.
On my system
bfd_zalloc2 (address@hidden, nmemb=3909091329, address@hidden)
fails with ENOMEM.
I think that is a quite reasonable result.
However, this particular case can be easily detected so I'll fix it
--
You are receiving this mail because:
You are on the CC list for the bug.