History log of /external/elfutils/libdw/encoded-value.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1ae83ee85404b345150104148b50c60ebcb79398 27-May-2015 Mark Wielaard <mjw@redhat.com> libdw: Fix overflow in read_encoded_value for the DW_EH_PE_indirect case.

If we are going to dereference a pointer there should be at least enough
data to hold a pointer. Found by afl-fuzz.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdw/encoded-value.h
031db7ce5f149c8469ac33f688a09ffb15c5d85d 11-Feb-2015 Josh Stone <jistone@redhat.com> libdw: ensure read_encoded_value's value is set

With CFLAGS='-Og -g', F21 gcc hits -Werror=maybe-uninitialized in
read_encoded_value at "*result += value". It's fine with -O2/-O0.

In particular it seems to care about the __libdw_cfi_read_address_inc
calls. By my inspection, the only way those don't set value are for
error cases, which will then return immediately. This patch just sets
value = 0 to begin with, so gcc is always convinced it's fine.

Signed-off-by: Josh Stone <jistone@redhat.com>
/external/elfutils/libdw/encoded-value.h
b4b2de9f1f1fb694b77371a61f808a1641bbafea 07-Jan-2015 Mark Wielaard <mjw@redhat.com> libdw: Robustify eh_frame_hdr and encoded-values reading.

Sanity check and keep track of binary_search_table data buffer length.
Add bounds check to encoded value reading. Also fix a bug when reading
the eh_frame header data from an other endian ELF image. Add a testcase
that would fail the new sanity checks because of the endian bug.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdw/encoded-value.h
7a053473c7bedd22e3db39c444a4cd8f97eace25 14-Dec-2014 Mark Wielaard <mjw@redhat.com> libdw: Add get_uleb128 and get_sleb128 bounds checking.

Both get_uleb128 and get_sleb128 now take an end pointer to prevent
reading too much data. Adjust all callers to provide the end pointer.

There are still two exceptions. "Raw" dwarf_getabbrevattr and
read_encoded_valued don't have a end pointer associated yet.
They will have to be provided in the future.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdw/encoded-value.h
de2ed97f33139af5c7a0811e4ec66fc896a13cf2 05-Jun-2012 Mark Wielaard <mjw@redhat.com> Update name, license and contributor policy.

* Change name from "Red Hat elfutils" to "elfutils".
* Update license of standalone tools and test from GPLv2 to GPLv3+.
* Change license of libraries from GPLv2+exception to GPLv2/LGPLv3+.
* Add Developer Certificate of Origin based contributor policy.

top-level:

- COPYING: Upgraded from GPLv2 to GPLv3.
- CONTRIBUTING, COPYING-GPLv2, COPYING-LGPLv3: New files.
- NEWS: Added note about new contribution and license policy.
- Makefile.am: Updated to GPLv3, added new files to EXTRA_DIST.
- configure.ac: Update to GPLv3, changed AC_INIT name to 'elfutils'.

backends, lib, libasm, libcpu, libdw, libdwfl, libebl, libelf:

- All files updated to GPLv2/LGPLv3+. Except some very small files
(<5 lines) which didn't have any headers at all before, the linker
.maps files and the libcpu/defs files which only contain data and
libelf/elf.h which comes from glibc and is under LGPLv2+.

config:

- elfutils.spec.in: Add new License: headers and new %doc files.
- Update all license headers to GPLv2/LGPLv3+ for files used by libs.

src, tests:

- All files updated to GPLv3+. Except for the test bz2 data files, the
linker maps and script files and some very small files (<5 lines)
that don't have any headers.

Signed-off-by: Richard Fontana <rfontana@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdw/encoded-value.h
7934ded435882538f8c551a3c2a9ed42d6d3c45a 16-Jun-2010 Roland McGrath <roland@redhat.com> Fix some corners of DW_EH_PE_* handling.
/external/elfutils/libdw/encoded-value.h
3c84db3b4b610bf636c4363abb6d3dac5ae020f9 25-Jun-2009 Roland McGrath <roland@redhat.com> CFI support: lookup by PC and translate into DWARF location per register
/external/elfutils/libdw/encoded-value.h