[Bug tools/21312] eu-elflint: memory allocation failure in xcalloc (xmalloc.c)

mark at klomp dot org sourceware-bugzilla@sourceware.org
Mon Mar 27 23:28:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21312

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
The allocation failure is caused by the insane large ph_num. We can limit the
amount of memory we need by first checking we can at least read the headers and
only allocate/check that number (and do the same for shnum).
https://sourceware.org/ml/elfutils-devel/2017-q1/msg00133.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list