dwarf_getlocation crash on NULL attribute.
authorUlrich Drepper <drepper@redhat.com>
Sat, 29 May 2010 03:28:04 +0000 (20:28 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sat, 29 May 2010 03:28:04 +0000 (20:28 -0700)
commit6fb3451de3ba29b628be6e30a01ef104156d4733
treea53261ef89652791ab8fb46fd2be8561442625e9
parent173ade8794ff3e569738202b20346b15b3f1df2a
dwarf_getlocation crash on NULL attribute.

A recent change added code in front of the attr_ok check.  This
breaks existing code that assumes it can pass NULL to the ATTR
parameter.  Move the attr_ok check back to the front.
libdw/ChangeLog
libdw/dwarf_getlocation.c