History log of /external/elfutils/libdwfl/cu.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f0855403012fe34aee248353e4435d0b5c6576ef 07-May-2015 Mark Wielaard <mjw@redhat.com> libdwfl: Only intern CU when not EOF marker and cuoff points to a DIE.

We need to check the cuoff points to a real Dwarf_Die before trying to
intern the cu with tsearch. Otherwise bogus keys might end up in the
search tree with NULL cus. That will cause crashes in compare_cukey
during next insertion or deletion of cus. We also don't want to insert
the EOF marker and unconditionally tdestroy the lazy_cu_root. The EOF
could be caused by bad DWARF from a bogus agranges entry.

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

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/cu.c
975a37d11d1a14229ada9293fac88a493bf83cfa 05-Jan-2015 Mark Wielaard <mjw@redhat.com> libdwfl: Handle seeing CU EOF marker without any other (real) CU.

intern_cu (and __libdwfl_nextcu) didn't correctly handle immediately seeing
the CU EOF marker. In that case the *nextp pointer (first_cu) returned by
intern_cu is -1. And less_layzy will immediately destroy the found CU node.
So don't use the *found result after calling less_lazy.

Found by afl-fuzz.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/cu.c
4a330f62794abaa3db95a0b447f4c433e4275ce6 14-Dec-2014 Mark Wielaard <mjw@redhat.com> Guard against 64bit unsigned wrap around in (int) compare functions.

Dwarf_Adrr and Dwarf_Off are 64-bit unsigned, and comparison functions
used in qsort or tfind return int, it is possible for the difference to
be so large that it wraps around. Make sure to just return -1, 0 or 1
in compare_aranges and compare_cukey.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/cu.c
ead7d1916789f1576550502d4bcf2a0f1d247463 12-Sep-2013 Mark Wielaard <mjw@redhat.com> libdwfl: Fix memory leak in cu.c on bad DWARF.

If libdw dwarf_offdie fails free cu structure.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/cu.c
ea45ac8e1d937b727122a0a286ad9b37f02fe0a2 01-Oct-2012 Mark Wielaard <mjw@redhat.com> cu.c (cudie_offset): Don't use type_sig8, it might not be initialized.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/cu.c
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/libdwfl/cu.c
1743d7f010bead5e869d097e23ce840583913381 13-Nov-2010 Roland McGrath <roland@redhat.com> libdwfl: Revamp bias bookkeeping, account correctly for prelink REL->RELA segment inflation.
/external/elfutils/libdwfl/cu.c
3e0f7d1d1b817040cef82f41879f471ab59b663e 16-Jun-2010 Roland McGrath <roland@redhat.com> Handle reading .debug_types section.
/external/elfutils/libdwfl/cu.c
077c65f3be02e5d01b0c4dea3f6c854077d156fc 12-Jul-2006 Ulrich Drepper <drepper@redhat.com> merge of 67f3844b544f03a64b3ac896c19f94744923d76a
and ba017f6b59b4ad649cf32f4eefdfecca8b31332c
/external/elfutils/libdwfl/cu.c
cc41562f94052f307da4429f33cc18c7d510b2f5 12-Jul-2006 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head e5cfdd13aa39dfae16b905fd57ff56ad8a131bb5)
to branch 'com.redhat.elfutils' (head 60222fc1981540f15e674b6705fd7a6f628f95a4)
/external/elfutils/libdwfl/cu.c
7f7f1bc0e20aa95f780b55272c19d514ee3dd1c7 12-Jul-2006 Ulrich Drepper <drepper@redhat.com> Adjust for internal_function_def removal.
/external/elfutils/libdwfl/cu.c
e7a73177dfbbc650fb43e5caa3ce29143f02fabd 22-May-2006 Ulrich Drepper <drepper@redhat.com> Handle files without aranges information.
/external/elfutils/libdwfl/cu.c
1e9ef50681e20ef14c2ba38aef37a71ff148be08 05-Apr-2006 Ulrich Drepper <drepper@redhat.com> Fix FSF address. No exception for libdwarf.
/external/elfutils/libdwfl/cu.c
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/libdwfl/cu.c
995f92d7d696930e2cbf08427d028d948e8c5180 26-Aug-2005 Roland McGrath <roland@redhat.com> libdwfl/
2005-08-25 Roland McGrath <roland@redhat.com>

* cu.c (__libdwfl_nextcu): Return success when dwarf_nextcu hits end.
* dwfl_nextcu.c (dwfl_nextcu): Skip modules with no dwarf info.
/external/elfutils/libdwfl/cu.c
4959bf89d92b59ba72bea5786d7b3f9b5564f750 09-Aug-2005 Roland McGrath <roland@redhat.com> libdw/
2005-08-09 Roland McGrath <roland@redhat.com>

* dwarf_end.c: Add INTDEF.
* dwarf_error.c (dwarf_errmsg): Likewise.
* libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.

libdwfl/
2005-08-09 Roland McGrath <roland@redhat.com>

* libdwflP.h: Include ../libdw/libdwP.h for its INTDECLs.
* cu.c: Use INTUSE on dwarf_* calls.
* dwfl_error.c: Likewise.
* dwfl_module.c: Likewise.
* dwfl_module_getdwarf.c: Likewise.
* dwfl_module_getsrc_file.c: Likewise.
* lines.c: Likewise.
/external/elfutils/libdwfl/cu.c
b08d5a8fb42f4586d756068065186b5af7e48dad 26-Jul-2005 Ulrich Drepper <drepper@redhat.com> Adjust for monotone.
/external/elfutils/libdwfl/cu.c