[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.0.4-testing] [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 81bd18feacf864efb2d4dcd8666c4af1fe398bdf # Parent ae4ccdfe94d601127d9f91bd52a6af21d83f7c0b [linux] Fix vsnprintf patch not to write null byte past the end of the buffer. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxxx> Based on xen-unstable changeset 13222:98dadb3df5caed10b182a1e175558b80ef7eee47 --- patches/linux-2.6.16.33/vsnprintf.patch | 1 - 1 files changed, 1 deletion(-) diff -r ae4ccdfe94d6 -r 81bd18feacf8 patches/linux-2.6.16.33/vsnprintf.patch --- a/patches/linux-2.6.16.33/vsnprintf.patch Thu Dec 21 16:20:11 2006 +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 |