WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.0.4-testing] [linux] Fix vsnprintf patch not to w

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.0.4-testing] [linux] Fix vsnprintf patch not to write null byte past the end of the buffer.
From: "Xen patchbot-3.0.4-testing" <patchbot-3.0.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 04 Jan 2007 23:00:16 -0800
Delivery-date: Thu, 04 Jan 2007 23:00:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.0.4-testing] [linux] Fix vsnprintf patch not to write null byte past the end of the buffer., Xen patchbot-3.0.4-testing <=