Mark Wielaard ff7fe98667 libelf: Handle zero size decompressed data.
This is a corner case that will most likely never occur in practice,
but we have several testcases that compress and decompress zero sized
data. In that case during decompression we might malloc a buffer of
size zero. It is allowed for malloc to return NULL in that case. But
we do need a non-NULL buffer to return and set as result. So make sure
to always at least allocate one byte. Also make sure that we don't
allocate a zero sized conversion buffer for the data.

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

Signed-off-by: Mark Wielaard <mark@klomp.org>
2019-02-19 16:27:40 +01:00
2019-02-14 14:40:21 +01:00
2018-10-20 00:13:10 +02:00
2019-02-14 14:40:21 +01:00
2009-01-10 18:17:09 -08:00
2019-02-14 14:40:21 +01:00
2019-02-14 14:40:21 +01:00
2019-02-14 14:40:21 +01:00
2016-01-05 08:55:27 +01:00
2019-02-14 14:40:21 +01:00
2017-09-19 16:05:49 +02:00
2009-01-10 18:17:09 -08:00

The elfutils project provides libraries and tools for ELF files and DWARF data.

The project home is http://elfutils.org/

Releases are published at ftp://sourceware.org/pub/elfutils/
Which can also be found at https://sourceware.org/elfutils/ftp/

To build a release do: ./configure && make && make check
Please check the configure summary to make sure all recommended
features are enabled. There should be no failures after make check.

Please reports bugs at https://sourceware.org/bugzilla/

The current elfutils source code can be checked out with
git clone git://sourceware.org/git/elfutils.git

To build a git checkout do:
  autoreconf -i -f && \
  ./configure --enable-maintainer-mode && \
  make && make check

The developer mailinglist to send patches to is
elfutils-devel@sourceware.org.
https://sourceware.org/ml/elfutils-devel/

To subscribe send an email to elfutils-devel-subscribe@sourceware.org
Or use the form at https://sourceware.org/lists.html#ml-requestor

See the CONTRIBUTING file for how to propose patches to the code.

See the NOTES files for some design decisions and notes.
S
Description
暂无描述
Readme 23 MiB
Languages
C 70.8%
Shell 22.6%
C++ 3.3%
Makefile 1.4%
M4 1%
Other 0.8%