Bug 107194: Run tests under valgrind - Simon McVittie <smcv@collabora.com> - 7/11/2018 Back to Bug | Your Reviews | Help
Attachment 140601: [11] nonce: Don't try to rmdir(NULL) on OOM - Simon McVittie <smcv@collabora.com> - 7/12/2018 (View )

Show Quick Help

From: Simon McVittie <smcv@collabora.com>
Date: Thu, 12 Jul 2018 13:32:10 +0100
Subject: [PATCH 11/18] nonce: Don't try to rmdir(NULL) on OOM
If re-initializing the string fails, it will be left in a state
where it has a length of 0 and a NULL buffer. That's valid to
"free", but not valid to pass to rmdir().
Signed-off-by: Simon McVittie <smcv@collabora.com>
---
dbus/dbus-nonce.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
<Overall Comment>
Previous Reviews
Philip Withnall <bugzilla@tecnocode.co.uk>
7/12/2018
-----------------------------------------------------------------
r+
Powered by Splinter

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.