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-unstable] [XEND] Fix backslash escaping so it ignor

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Fix backslash escaping so it ignores escapes if they don't make sense.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Nov 2006 22:08:17 +0000
Delivery-date: Thu, 02 Nov 2006 21:39:39 -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 acnt2@xxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 0d120850741a69db20f6774b6cc965436ff29cc7
# Parent  96a77ef725b8cc9dbf0b621bcf9e29d76f688ee6
[XEND] Fix backslash escaping so it ignores escapes if they don't make sense.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/sxp.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r 96a77ef725b8 -r 0d120850741a tools/python/xen/xend/sxp.py
--- a/tools/python/xen/xend/sxp.py      Mon Oct 02 13:45:44 2006 +0100
+++ b/tools/python/xen/xend/sxp.py      Thu Oct 05 17:29:19 2006 +0100
@@ -267,10 +267,13 @@ class Parser:
         elif c == 'x':
             self.state.fn = self.state_hex
             self.state.val = 0
-        else:
+        elif c == '0':
             self.state.fn = self.state_octal
             self.state.val = 0
             self.input_char(c)
+        else:
+            # ignore escape if it doesn't match anything we know
+            self.pop_state()
 
     def state_octal(self, c):
         def octaldigit(c):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Fix backslash escaping so it ignores escapes if they don't make sense., Xen patchbot-unstable <=