diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-06-08 12:37:23 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-06-08 12:37:23 (GMT) |
commit | 9ce3a23afef1bf3b0c550ef23b674c5e578e5466 (patch) | |
tree | 6f8f9a0b6f5343b44398512009be1d975669180a /tests | |
parent | 9562ecd7fa7b25bf6e8e37f5977c81336fd46c06 (diff) | |
parent | c2e241f3cd55724eab1119f8bc9719d6306df7f5 (diff) | |
download | tcl-9ce3a23afef1bf3b0c550ef23b674c5e578e5466.zip tcl-9ce3a23afef1bf3b0c550ef23b674c5e578e5466.tar.gz tcl-9ce3a23afef1bf3b0c550ef23b674c5e578e5466.tar.bz2 |
Fix [2738427]: Tcl_NumUtfChars(...) no overflow check.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/utf.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/utf.test b/tests/utf.test index f677438..422ab08 100644 --- a/tests/utf.test +++ b/tests/utf.test @@ -110,9 +110,13 @@ test utf-4.7 {Tcl_NumUtfChars: long string, calc len} {testnumutfchars testbytes test utf-4.8 {Tcl_NumUtfChars: #u0000, calc len} {testnumutfchars testbytestring} { testnumutfchars [testbytestring "\xC0\x80"] 2 } {1} -test utf-4.9 {Tcl_NumUtfChars: #u20AC, calc len, incomplete} {knownBug testnumutfchars testbytestring} { +# Bug [2738427]: Tcl_NumUtfChars(...) no overflow check +test utf-4.9 {Tcl_NumUtfChars: #u20AC, calc len, incomplete} {testnumutfchars testbytestring} { testnumutfchars [testbytestring "\xE2\x82\xAC"] 2 } {2} +test utf-4.10 {Tcl_NumUtfChars: #u0000, calc len, overcomplete} {testnumutfchars testbytestring} { + testnumutfchars [testbytestring "\x00"] 2 +} {2} test utf-5.1 {Tcl_UtfFindFirsts} { } {} |