aboutsummaryrefslogtreecommitdiff
path: root/qobject
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-06-13 10:13:02 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2014-06-23 11:01:24 -0400
commitd59323343825d14b6fc2d0f14bc5020b634150fe (patch)
treef33d62106609bb297fe7b4a58a4b08d435c6a2b8 /qobject
parent05dfb26cd2bf3f50a0fbf08a68a3bd415301edc5 (diff)
downloadqemu-d59323343825d14b6fc2d0f14bc5020b634150fe.zip
qemu-d59323343825d14b6fc2d0f14bc5020b634150fe.tar.gz
qemu-d59323343825d14b6fc2d0f14bc5020b634150fe.tar.bz2
json-lexer: fix escaped backslash in single-quoted string
This made the lexer wait for a closing *double* quote. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Amos Kong <akong@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qobject')
-rw-r--r--qobject/json-lexer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qobject/json-lexer.c b/qobject/json-lexer.c
index 440df60..b19623e 100644
--- a/qobject/json-lexer.c
+++ b/qobject/json-lexer.c
@@ -138,8 +138,8 @@ static const uint8_t json_lexer[][256] = {
['n'] = IN_SQ_STRING,
['r'] = IN_SQ_STRING,
['t'] = IN_SQ_STRING,
- ['/'] = IN_DQ_STRING,
- ['\\'] = IN_DQ_STRING,
+ ['/'] = IN_SQ_STRING,
+ ['\\'] = IN_SQ_STRING,
['\''] = IN_SQ_STRING,
['\"'] = IN_SQ_STRING,
['u'] = IN_SQ_UCODE0,