projects
/
project
/
jsonpath.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8614470
)
lexer: fix encoding 7 bit escape sequences
author
Jo-Philipp Wich
<jo@mein.io>
Sun, 4 Feb 2018 17:25:04 +0000
(18:25 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Sun, 4 Feb 2018 17:25:04 +0000
(18:25 +0100)
A misplaced paren caused escape sequences in the ranges \x00..\x7f,
\u0000..\u007f and \0..\177 to get improperly encoded into the
string buffer.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
lexer.c
patch
|
blob
|
history
diff --git
a/lexer.c
b/lexer.c
index
3661c24
..
ca5880e
100644
(file)
--- a/
lexer.c
+++ b/
lexer.c
@@
-55,7
+55,7
@@
utf8enc(char **out, int *rem, int code)
if (*rem < 1)
return false;
- *(*out
++)
= code; (*rem)--;
+ *(*out
)++
= code; (*rem)--;
return true;
}
else if (code > 0 && code <= 0x7FF)