[libvirt] [PATCH] uuid: fix off-by-one
Michal Privoznik
mprivozn at redhat.com
Thu Jan 12 08:30:47 UTC 2012
On 12.01.2012 01:46, Eric Blake wrote:
> Detected by Coverity. Although unlikely, if we are ever started
> with stdin closed, we could reach a situation where we open a
> uuid file but then fail to close it, making that file the new
> stdin for the rest of the process.
>
> * src/util/uuid.c (getDMISystemUUID): Allow for stdin.
> ---
> src/util/uuid.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
ACK
Michal
More information about the libvir-list
mailing list