Skip to contentSkip to conversation

(no subject)

DISCUSSION Seraphime Kirkovski 1 participant 1 message Apr 4, 2017

lore
Share & tools
lore
#0 lore raw

<[email protected]>
Bcc:
Subject: Re: [PATCH] libxc: fix segfault on uninitialized xch->fmem Reply-To:
In-Reply-To: <[email protected]>

Quoted 11 lines · Wei Liu

Since there are a few handles in xch, it would be better to initialise them all at once by doing:

    struct xc_interface_core xch_buf = { 0 }
Quoted 6 lines
     xch->flags = open_flags;
     xch->dombuild_logger_file = 0;
     xc_clear_last_error(xch);
Signature · 1 line
2.11.0

Hi, thanks for the reply.

Literally 10 minutes after sending this, I thought that a bzero would be better. Will send a V2 shortly.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel