libctf, types: ints, floats and typedefs with no name are invalid
authorNick Alcock <nick.alcock@oracle.com>
Tue, 2 Jun 2020 19:49:14 +0000 (20:49 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 16:57:32 +0000 (17:57 +0100)
commit96e3ec29664810995d6d7d3b6fd6ae2d19c532bd
tree6b13dd4277d8647d015f6e17b681145d9f9b2550
parent502e838ed9657ee74cdb4f53798e1468004c9524
libctf, types: ints, floats and typedefs with no name are invalid

Report them as such, rather than letting ctf_decl_sprintf wrongly
conclude that the printing of zero characters means we are out of
memory.

libctf/
* ctf-types.c (ctf_type_aname): Return ECTF_CORRUPT if
ints, floats or typedefs have no name.  Fix comment typo.
libctf/ChangeLog
libctf/ctf-types.c