[applied] Bug 29690 - Out of range exception in add_or_update_class_type
Commit Message
hello,
This was triggered by doing:
$ fedabipkgdiff --self-compare -a --from fc37 amg4psblas-mpich
* src/abg-dwarf-reader.cc (add_or_update_class_type): Make sure
the array is big enough.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
---
src/abg-dwarf-reader.cc | 1 +
1 file changed, 1 insertion(+)
@@ -13075,6 +13075,7 @@ add_or_update_class_type(reader& rdr,
/// "_vptr[^0-9a-zA-Z_]", which is what Clang and GCC
/// use as a name for the hidden vtable pointer.
if (n.substr(0, 5) == "_vptr"
+ && n.size() > 5
&& !std::isalnum(n.at(5))
&& n.at(5) != '_')
continue;