]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Don't create _Complex type name if there is no target type name
authorHannes Domani <ssbssa@yahoo.de>
Tue, 6 Oct 2020 15:08:42 +0000 (17:08 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Thu, 22 Oct 2020 18:05:32 +0000 (20:05 +0200)
commit7565d82a500dc084347db7e472d73ef38872b1dc
treef29cb60925b1866a0cb67917e1c1368d16957849
parenta9e3b919502b10ff96df7bab3161c5be8e718b3b
Don't create _Complex type name if there is no target type name

This causes gdb to crash in strlen.

Happens if init_complex_type is called for a type created by
dbx_init_float_type in stabsread.c.

gdb/ChangeLog:

2020-10-22  Hannes Domani  <ssbssa@yahoo.de>

* gdbtypes.c (init_complex_type): Check target type name.
gdb/ChangeLog
gdb/gdbtypes.c