More tests for invalid code points.

This commit is contained in:
Bob Nystrom
2015-06-27 08:11:58 -07:00
parent 7baef81a4e
commit bf730bb953
2 changed files with 7 additions and 3 deletions
-1
View File
@@ -143,7 +143,6 @@ int wrenUtf8Decode(const uint8_t* bytes, uint32_t length)
}
// Don't read past the end of the buffer on truncated UTF-8.
// TODO: Test this.
if (remainingBytes > length - 1) return -1;
while (remainingBytes > 0)