From f03d3439cd0ac3827bde1c6b6925dc778fb02f5f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 27 Jan 2009 12:26:53 +0000 Subject: [PATCH] virterror.c: don't read beyond end of buffer upon OOM * src/virterror.c (virReportSystemErrorFull): Fix typo in my previous change. Patch by Daniel P. Berrange. --- ChangeLog | 6 ++++++ src/virterror.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index afc9dc9bad..e55d862bbb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jan 27 13:25:16 +0100 2009 Jim Meyering + + virterror.c: don't read beyond end of buffer upon OOM + * src/virterror.c (virReportSystemErrorFull): Fix typo in + my previous change. Patch by Daniel P. Berrange. + Tue Jan 27 10:48:12 IST 2009 Mark McLoughlin kvm/virtio: Set IFF_VNET_HDR when setting up tap fds diff --git a/src/virterror.c b/src/virterror.c index a577002dbd..160fea3a5a 100644 --- a/src/virterror.c +++ b/src/virterror.c @@ -1059,7 +1059,7 @@ void virReportSystemErrorFull(virConnectPtr conn, } } - if (!msgDetailBuf) + if (!msgDetail) msgDetail = errnoDetail; virRaiseError(conn, NULL, NULL, domcode, VIR_ERR_SYSTEM_ERROR, VIR_ERR_ERROR, -- GitLab