|
2017-07-13
| ||
| 15:08 | • Closed ticket [293344d4f3]: Regression in SQLite test-suite plus 6 other cha... artifact: eddfa610b2 user: jan.nijtmans | |
| 15:06 | Fix [293344d4f3]: Regression in SQLite test-suite. Long-standing bug in implementation of TclUtfToUn... check-in: 65f2f760e4 user: jan.nijtmans tags: core-8-6-branch | |
| 15:03 | Fix [293344d4f3]: Regression in SQLite test-suite. Long-standing bug in implementation of TclUtfToUn... check-in: 66a24e0413 user: jan.nijtmans tags: core-8-5-branch | |
| 15:00 | • New ticket [293344d4f3] Regression in SQLite test-suite. artifact: 5c8a55da0d user: jan.nijtmans | |
Regression in SQLite test-suite
Closed / Fixed293344d4f3e07f7f9da93db4b967abed8122bd42Created 9 years agoUpdated 9 years ago
Descriptionwiki2017-07-13 15:00:42
When running the latest SQLite test-suite there was a regression in 2 test-cases, one of them:
badutf2-4.1.5...
! badutf2-4.1.5 expected: [\u0080]
! badutf2-4.1.5 got: [\uFF80]
bisecting Tcl pointed to commit [7351fc0c9c], but - actually - there's nothing wrong with this commit. Further investigation resulted in the observation that the macro TclUtfToUniChar() contained a mistake: If 'str' points to a signed character (which it normally does), a character in the range \x80-\xC0 results in an unicode character in the range \xFF80-\xFFC0 ... this is clearly wrong.
Conclusion: this is a long-standing bug in the TclUtfToUniChar() macro, which was never discovered because there was no test-case touching this. Commit [7351fc0c9c] merely exposed this bug in the SQLite test-suite.
Referenced by2
65f2f760e4Fix [293344d4f3]: Regression in SQLite test-suite. Long-standing bug in implementation of TclUtfToUniChar() macro. check-in2017-07-13 15:06:0766a24e0413Fix [293344d4f3]: Regression in SQLite test-suite. Long-standing bug in implementation of TclUtfToUniChar() macro. check-in2017-07-13 15:03:27
jan.nijtmansplain2017-07-13 15:08:55
Fixed in core-8-5-branch, core-8-6-branch and trunk
Log in (anonymous is fine) to add a comment.