|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [XEND] Fix backslash escaping so it ignor
# 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 <=
|
|
|
|
|