libdw: Add overflow checking to __libdw_form_val_len.
authorMark Wielaard <mjw@redhat.com>
Thu, 4 Dec 2014 20:43:44 +0000 (21:43 +0100)
committerMark Wielaard <mjw@redhat.com>
Thu, 11 Dec 2014 14:10:14 +0000 (15:10 +0100)
commitcb73b5a015606a02f952f7eddaba15327f6191fa
tree217bc940ebda5bcf26c4be3de047a1fbd5c3359c
parentedb079a596b25379828836e501d003f20afdb879
libdw: Add overflow checking to __libdw_form_val_len.

Pass endp as argument to __libdw_form_val_len and check we don't read
beyond the end of expected data and don't return lengths that would
overflow.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libdw/ChangeLog
libdw/dwarf_child.c
libdw/dwarf_getattrs.c
libdw/dwarf_getmacros.c
libdw/libdwP.h
libdw/libdw_form.c