[COMMITTED] libdwfl: Don't allocate more than SIZE_MAX in dwfl_segment_report_module.

2021-12-12 Thread Mark Wielaard
The code in dwfl_segment_report_module tries to allocate and fill in memory as described in a core file. Normally all memory in filled in through the (phdrs) memory_callback or the read_eagerly callback. If the last callback doesn't work we try to calloc file_trimmed_end bytes and then try to fill

[PATCH] tests: integrate fuzz-dwfl-core into elfutils

2021-12-12 Thread Evgeny Vereshchagin via Elfutils-devel
The fuzz target was integrated into OSS-Fuzz in https://github.com/google/oss-fuzz/pull/6944 and since then it has been running there continously (uncovering various issues along the way). It's all well and good but since OSS-Fuzz is far from the elfutils repository it's unnecessarily hard to build