[PATCH 0/2] Avoid memcpy with NULL argument
Claudio Fontana
cfontana at suse.de
Wed May 25 12:57:34 UTC 2022
On 5/25/22 1:01 PM, Peter Krempa wrote:
> Behaviour is undefined per C standard.
>
> Peter Krempa (2):
> virNetMessageEncodePayloadRaw: Tolerate empty 'data'
> virNetMessageEncodePayloadEmpty: Replace by
> virNetMessageEncodePayloadRaw(msg, NULL, 0)
>
> src/rpc/virkeepalive.c | 2 +-
> src/rpc/virnetmessage.c | 76 ++++++++++++++---------------------
> src/rpc/virnetmessage.h | 2 -
> src/rpc/virnetserverprogram.c | 9 +----
> 4 files changed, 34 insertions(+), 55 deletions(-)
>
Both patches seem correct to me.
Reviewed-by: Claudio Fontana <cfontana at suse.de>
More information about the libvir-list
mailing list