projects
/
platform
/
upstream
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2177d71
)
Correctly parse unicode escape sequences between 0 and u001f
author
Lars Knoll
<lars.knoll@digia.com>
Tue, 25 Mar 2014 07:37:20 +0000
(08:37 +0100)
committer
The Qt Project
<gerrit-noreply@qt-project.org>
Tue, 25 Mar 2014 09:01:35 +0000
(10:01 +0100)
The old code rejected these escape sequences because of a
slight misreading of the spec.
Task-number: QTBUG-36968
Change-Id: I56a0e76295d1903b4798719de028bd21ad5be719
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4jsonobject.cpp
patch
|
blob
|
history
diff --git
a/src/qml/jsruntime/qv4jsonobject.cpp
b/src/qml/jsruntime/qv4jsonobject.cpp
index 36706f27665ad2d67a83f24b9fd4bdad3afdf308..ca82af1b3074f6c130ab90a75092f4f19a90dff4 100644
(file)
--- a/
src/qml/jsruntime/qv4jsonobject.cpp
+++ b/
src/qml/jsruntime/qv4jsonobject.cpp
@@
-594,8
+594,6
@@
static inline bool scanEscapeSequence(const QChar *&json, const QChar *end, uint
return false;
++json;
}
- if (*ch <= 0x1f)
- return false;
return true;
}
default: