[libvirt] [PATCH 2/7] util: make allocation functions abort on OOM

Ján Tomko jtomko at redhat.com
Mon Sep 2 13:43:05 UTC 2019


On Thu, Aug 29, 2019 at 07:02:45PM +0100, Daniel P. Berrangé wrote:
>The functions are left returning an "int" to avoid an immediate
>big-bang cleanup. They'll simply never return anything other
>than 0, except for virInsertN which can still return an error
>if the requested insertion index is out of range. Interestingly
>in that case, the _QUIET function would none the less report
>an error.
>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
> src/util/viralloc.c | 201 +++++++++++---------------------------------
> src/util/viralloc.h | 145 +++++++++++---------------------
> 2 files changed, 97 insertions(+), 249 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190902/afec45a2/attachment-0001.sig>


More information about the libvir-list mailing list