3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-07 18:05:21 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-02-15 14:17:05 -08:00
parent c387863da1
commit 96e7b811f9

View file

@ -35,7 +35,7 @@ static bool is_hex_digit(char ch, unsigned& d) {
bool zstring::is_escape_char(char const *& s, unsigned& result) {
unsigned d;
if (*s == '\\' && *(s+1) == 'u' && *(s+2) == '{') {
if (*s == '\\' && s[1] == 'u' && s[2] == '{' && s[3] != '}') {
result = 0;
for (unsigned i = 0; i < 6; ++i) {
if (is_hex_digit(*(s+3+i), d)) {