diff --git a/ChangeLog b/ChangeLog index afc9dc9bad5ad9c6824d55e364c283f52b272759..e55d862bbb8e8bc592cd932c270715241d84f326 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 a577002dbd1773649025b1d0f2612787b03ae9b5..160fea3a5aa42e653151ed91e2511e8f3d2ab456 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,