Files
Nick Alcock 86f64bf43f libctf, serialize: functions with no args have a NULL dtd_vlen
Every place that accesses a function's dtd_vlen accesses it only if the
number of args is nonzero, except the serializer, which always tries to
memcpy it.  The number of bytes it memcpys in this case is zero, but it
is still undefined behaviour to copy zero bytes from a null pointer.
So check for this case explicitly.

libctf/ChangeLog
2021-03-25  Nick Alcock  <nick.alcock@oracle.com>

	PR libctf/27628
	* ctf-serialize.c (ctf_emit_type_sect): Allow for a NULL vlen in
	CTF_K_FUNCTION types.
2021-03-25 16:32:48 +00:00
..
2021-01-05 14:53:40 +00:00
2020-07-22 18:02:19 +01:00
2021-02-21 14:26:38 +10:30
2021-02-21 14:26:38 +10:30
2021-02-20 16:37:08 +00:00
2021-03-18 12:37:55 +00:00