[binutils-gdb] PR28250, Null pointer dereference in debug_class_type_samep
Alan Modra
amodra@sourceware.org
Wed Sep 1 01:24:49 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=64cb17196c7b2365ec152991235e686e6dc27a18
commit 64cb17196c7b2365ec152991235e686e6dc27a18
Author: Alan Modra <amodra@gmail.com>
Date: Wed Sep 1 10:06:08 2021 +0930
PR28250, Null pointer dereference in debug_class_type_samep
Typo fix, obviously should be m1->variants != NULL, not
m1->variants == NULL.
PR 28250
* debug.c (debug_class_type_samep): Correct m1->variants test.
Diff:
---
binutils/debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/binutils/debug.c b/binutils/debug.c
index 93887374d15..9d60d154f04 100644
--- a/binutils/debug.c
+++ b/binutils/debug.c
@@ -3334,7 +3334,7 @@ debug_class_type_samep (struct debug_handle *info, struct debug_type_s *t1,
|| strcmp (m1->name, m2->name) != 0
|| (m1->variants == NULL) != (m2->variants == NULL))
return false;
- if (m1->variants == NULL)
+ if (m1->variants != NULL)
{
struct debug_method_variant_s **pv1, **pv2;
More information about the Binutils-cvs
mailing list