[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [linux] Fix vsnprintf patch not to write null byte past the end of the buffer.
# HG changeset patch # User Christian Limpach <Christian.Limpach@xxxxxxxxxxxxx> # Date 1167925808 0 # Node ID 98dadb3df5caed10b182a1e175558b80ef7eee47 # Parent 48c9028e6f8e348eea7635b2bc43a809d5d3fa64 [linux] Fix vsnprintf patch not to write null byte past the end of the buffer. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxxx> --- patches/linux-2.6.16.33/vsnprintf.patch | 1 - 1 files changed, 1 deletion(-) diff -r 48c9028e6f8e -r 98dadb3df5ca patches/linux-2.6.16.33/vsnprintf.patch --- a/patches/linux-2.6.16.33/vsnprintf.patch Thu Jan 04 15:32:26 2007 +0000 +++ b/patches/linux-2.6.16.33/vsnprintf.patch Thu Jan 04 15:50:08 2007 +0000 @@ -203,7 +203,7 @@ index b07db5c..f595947 100644 + if (str < end) + *str = '\0'; + else -+ *end = '\0'; ++ end[-1] = '\0'; + } + /* the trailing null byte doesn't count towards the total */ return str-buf; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |