summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_siblingof.c
Commit message (Collapse)AuthorAgeFilesLines
* libdw: Fix crashing on illegal/zero Dwarf_Die.Mark Wielaard2018-05-151-2/+3
| | | | | | | | | | | In some cases we create an illegal Dwarf_Die by clearing all fields. The idea is that dwarf_tag () on such a Dwarf_Die will return DW_TAG_invalid, to indicate that the Dwarf_Die is unusable (and other functions will also return errors). But when "reconstructing" the Dwarf_Die addr we might use the cu before realizing the Dwarf_Die is invalid. Fix this with an explicit NULL check and add a testcase. Signed-off-by: Mark Wielaard <[email protected]>
* Remove old-style function definitions.Mark Wielaard2015-09-231-3/+1
| | | | | | | We already require -std=gnu99 and old-style function definitions might hide some compiler warnings. Signed-off-by: Mark Wielaard <[email protected]>
* Remove redundant NULL tests.Chih-Hung Hsieh2015-09-141-2/+1
| | | | | | | | GCC6 and Clang give warnings on redundant NULL tests of parameters that are declared with __nonnull_attribute__. Signed-off-by: Chih-Hung Hsieh <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* libdw: Check DW_AT_sibling attribute offset is after current DIE.Mark Wielaard2015-01-151-2/+5
| | | | | | | | | | The sibling attribute should point after this DIE in the CU. Otherwise various algorithms might loop or go into infinite recursion walking the DIE tree. Found by afl-fuzz. Signed-off-by: Mark Wielaard <[email protected]>
* libdw: Check sibling attribute offset still falls inside CU data.Mark Wielaard2015-01-121-0/+7
| | | | | | Found with afl-fuzz. Signed-off-by: Mark Wielaard <[email protected]>
* libdw: save startp/endp boundaries in Dwarf_CUJosh Stone2014-12-111-4/+2
| | | | | | | Rather than looking up section data every time, we can simply save the range of each CU as pointers in Dwarf_CU. Signed-off-by: Josh Stone <[email protected]>
* libdw: Always check __libdw_find_attr return value.Mark Wielaard2014-11-261-2/+2
| | | | | | | __libdw_find_attr will return NULL and might not set code or form. Only use code or form if the returned address is not NULL. Signed-off-by: Mark Wielaard <[email protected]>
* Update name, license and contributor policy.Mark Wielaard2012-06-051-40/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* Handle reading .debug_types section.Roland McGrath2010-06-161-5/+3
|
* Minor optimizations.Ulrich Drepper2008-01-221-1/+1
|
* Add missing copyright year updates. Fix ChangeLog.Ulrich Drepper2008-01-221-1/+1
|
* merge of '33d6cda327b8cb82fe8be29c24addb2bdf40acff'Ulrich Drepper2008-01-221-0/+2
| | | | and '4f7c8e6f95ff49761dd62bf932f09597f5838ab8'
* Update copyright year.Ulrich Drepper2008-01-211-2/+0
|
* explicit merge of 'f9dc98cac1b8ccd38e7420c43dfe7551e2923aaa'elfutils-0.132Roland McGrath2008-01-221-0/+2
| | | | and '90e87946af64cdaa0fc75d344ca35ee2729e655d'
* propagate from branch 'com.redhat.elfutils.nickc.pending' (head ↵Ulrich Drepper2008-01-181-5/+13
| | | | | | 28d6423325f0cc14a133eb6b92a8c3604e437ba6) to branch 'com.redhat.elfutils' (head 6ef48518ed8497626058574c787852bd939d46ee)
* 2007-10-23 Roland McGrath <[email protected]>Roland McGrath2007-10-231-2/+2
| | | | | | * linux-kernel-modules.c (report_kernel_archive): Reorder the kernel module to appear first.
* Fix FSF address. No exception for libdwarf.Ulrich Drepper2006-04-041-1/+1
|
* propagate from branch 'com.redhat.elfutils.roland.pending' (head ↵Ulrich Drepper2006-04-041-9/+45
| | | | | | 4f8fc821345feef58624f0aa5b470d4827577d8c) to branch 'com.redhat.elfutils' (head 76e26cb54695fd3b21ee8fb5be3036bd68200633)
* Adjust for monotone.Ulrich Drepper2005-07-261-0/+115