* [PATCH, applied] Bug 29690 - Out of range exception in add_or_update_class_type
@ 2023-03-27 9:21 Dodji Seketeli
0 siblings, 0 replies; only message in thread
From: Dodji Seketeli @ 2023-03-27 9:21 UTC (permalink / raw)
To: libabigail
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(+)
diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc
index d842d25b..37367dba 100644
--- a/src/abg-dwarf-reader.cc
+++ b/src/abg-dwarf-reader.cc
@@ -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;
--
2.39.2
--
Dodji
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-27 9:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 9:21 [PATCH, applied] Bug 29690 - Out of range exception in add_or_update_class_type Dodji Seketeli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).