mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
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.
This commit is contained in:
@ -3334,7 +3334,7 @@ debug_class_type_samep (struct debug_handle *info, struct debug_type_s *t1,
|
|||||||
|| strcmp (m1->name, m2->name) != 0
|
|| strcmp (m1->name, m2->name) != 0
|
||||||
|| (m1->variants == NULL) != (m2->variants == NULL))
|
|| (m1->variants == NULL) != (m2->variants == NULL))
|
||||||
return false;
|
return false;
|
||||||
if (m1->variants == NULL)
|
if (m1->variants != NULL)
|
||||||
{
|
{
|
||||||
struct debug_method_variant_s **pv1, **pv2;
|
struct debug_method_variant_s **pv1, **pv2;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user