History log of /external/elfutils/libdw/memory-access.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
65a211f9028304757df8f4fa7cb3cc77d1501420 22-Apr-2015 Mark Wielaard <mjw@redhat.com> libdw: Undefined behavior in get_sleb128_step.

gcc -fsanitize=undefined pointed out that for too big sleb128 values we
could shift into the sign bit. So for sleb128 values that have to fit
in a (signed) int64_t variable reduce the max number of steps by one.

https://bugzilla.redhat.com/show_bug.cgi?id=1170810#c29

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdw/memory-access.h
1b5477ddf360af0f6262c6f15a590448b4e1a65a 16-Dec-2014 Mark Wielaard <mjw@redhat.com> libdw: Unroll the first get_sleb128 step to help the compiler optimize.

The common case is a single-byte. So no extra (max len) calculation is
necessary then.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdw/memory-access.h
54662f13d14d59d44943543c48bdb21d50dd008d 15-Dec-2014 Josh Stone <jistone@redhat.com> libdw: pre-compute leb128 loop limits

Signed-off-by: Josh Stone <jistone@redhat.com>
/external/elfutils/libdw/memory-access.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/memory-access.h
1498f541290f072ade0b783c298c358e9da74937 12-Sep-2014 Petr Machata <pmachata@redhat.com> Rename read_ubyte_unaligned_inc to read_addr_unaligned_inc

- The behavior of this function has been changed to read only
address-sized quantities, i.e. the size of 2 is no longer allowed.
(Size of 1 never was.) The two outstanding uses, both in readelf.c,
which actually do use this call to read address-sized units, were
updated, rejecting fields that indicate weird address sizes.

- The three related calls, read_sbyte_unaligned_inc,
read_ubyte_unaligned and read_sbyte_unaligned were dropped. There
are currently no uses for these calls.

Signed-off-by: Petr Machata <pmachata@redhat.com>
/external/elfutils/libdw/memory-access.h
eb4da48fa48c69e303b410c4bf7dd7bea8108406 22-Apr-2014 Mark Wielaard <mjw@redhat.com> libdw (get_sleb128_step): Remove undefined behavior.

As pointed out by gcc -fsanitize=undefined left shifting a negative value
is undefined. Replace it with a multiplication of the signed value as
suggested by Richard Henderson and Josh Stone.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdw/memory-access.h
4e2787c2674bdb152e275edb3ed4d9939c8f62d7 10-Dec-2013 Josh Stone <jistone@redhat.com> libdw: Simplify and inline get_uleb128 and get_sleb128

This removes the IS_LIBDW distinction so LEB128 operations are now
always inlined, and the implementations are simplified, more direct.

Signed-off-by: Josh Stone <jistone@redhat.com>
/external/elfutils/libdw/memory-access.h
3999ce14663c26bcddc2cf4d4bb9b61c7ad29ac3 07-Jan-2013 Roland McGrath <roland@hack.frob.com> dwfl_link_map_report: Handle unaligned auxv data.

Signed-off-by: Roland McGrath <roland@hack.frob.com>
/external/elfutils/libdw/memory-access.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/memory-access.h
0c5638c2ac488a4a49f76ddb074e87bdebe90288 22-Jun-2010 Roland McGrath <roland@redhat.com> Fix readelf for large SLEB128 values.
/external/elfutils/libdw/memory-access.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/memory-access.h
ac194d052517be32d1e3dab62782d5f734994dca 06-Jan-2009 Ulrich Drepper <drepper@redhat.com> Implement call frame information dumping.
/external/elfutils/libdw/memory-access.h
1e9ef50681e20ef14c2ba38aef37a71ff148be08 05-Apr-2006 Ulrich Drepper <drepper@redhat.com> Fix FSF address. No exception for libdwarf.
/external/elfutils/libdw/memory-access.h
361df7da6dfecd817b27e62b91752ac316d7cdd4 04-Apr-2006 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head 4f8fc821345feef58624f0aa5b470d4827577d8c)
to branch 'com.redhat.elfutils' (head 76e26cb54695fd3b21ee8fb5be3036bd68200633)
/external/elfutils/libdw/memory-access.h
b08d5a8fb42f4586d756068065186b5af7e48dad 26-Jul-2005 Ulrich Drepper <drepper@redhat.com> Adjust for monotone.
/external/elfutils/libdw/memory-access.h