Avi Kivity <a...@redhat.com> writes:

> A NEW(type) and ARRAY_NEW(type, count) marcros would improve type
> safety and plug a dormant buffer overflow due to multiplication
> overflow, yes.  Even qemu_calloc() would be an improvement.  But
> having qemu_malloc() not fix the zero length array case which we know
> we have is irresponsible, IMO.

Agree on all counts.


Reply via email to