libdw: aggregate_size check NULL result from get_type.
authorMark Wielaard <mark@klomp.org>
Sun, 17 Jun 2018 22:23:23 +0000 (00:23 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 20 Jun 2018 11:22:48 +0000 (13:22 +0200)
commit9d7577842f9a8580552105507139c611af34e52f
tree1213688c384a4796a07436670283e89243b1eb0d
parent6ad1343200116145aae9e3f04f4973a7aaf3a999
libdw: aggregate_size check NULL result from get_type.

aggregate_size can be called recursively with the result of get_type.
get_type can return NULL when dwarf_peel_type fails. Found by afl-fuzz.

dwarf_aggregate_size when called directly doesn't need a NULL check
because it calls and checks the result of dwarf_peel_type directly.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_aggregate_size.c