LVM2 ./WHATS_NEW lib/log/log.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-02-08 11:31:29
Modified files:
. : WHATS_NEW
lib/log : log.c
Log message:
Move done jump lower
Since before 'goto done' is bufused zeroed, it would otherwise write 1 byte in front of buffer.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2265&r2=1.2266
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/log/log.c.diff?cvsroot=lvm2&r1=1.67&r2=1.68
WHATS_NEW +2 -0
@@ -1,5 +1,7 @@ Version 2.02.91 - =================================== + Do not write in front of log buffer in print_log(). + Add boundary test for number of mirror devs and logs. Check that whole locking_dir fits _lock_dir buffer in init_file_locking(). Use list functions for label_exit(). Ensure strncpy() function always ends with '\0'.
lib/log/log.c +1 -1
@@ -388,8 +388,8 @@va_end (ap); bufused += n; - done: buf[bufused -1 ] ='\n' ; + done: buf[bufused] ='\n' ; buf[sizeof (buf) -1 ] ='\n' ;/* FIXME real size bufused */