Merge tag 'v0.19.12'

release v0.19.12
This commit is contained in:
Max Kellermann
2015-12-15 22:05:21 +01:00
5 changed files with 10 additions and 3 deletions

View File

@@ -41,9 +41,9 @@ FindInvalidUTF8(const char *p, const char *const end)
/* now call the other SequenceLengthUTF8() overload
which also validates the continuations */
const size_t t = SequenceLengthUTF8(p);
assert(s == t);
if (t == 0)
return p;
assert(s == t);
p += s;
}