|
2003-02-12
| ||
| 03:13 | • Closed ticket [684699ffff]: inconsistent NULL treatment plus 7 other changes artifact: 5a24ae75a7 user: dgp | |
| 02:17 | • Ticket [684699ffff]: 5 changes artifact: bc00a98371 user: hobbs | |
| 02:10 | • Open ticket [684699ffff]. artifact: 8f3a6f72a6 user: dgp | |
| 01:45 | • Ticket [684699ffff]: 2 changes artifact: 4c4d5bf2bf user: hobbs | |
| 01:45 | • Closed ticket [684699ffff]. artifact: c3d17707e6 user: hobbs | |
|
2003-02-11
| ||
| 23:56 | • Ticket [684699ffff]: 4 changes artifact: fa798f3691 user: dkf | |
| 23:44 | • Ticket [684699ffff]: 5 changes artifact: 77e282ed07 user: dgp | |
| 23:33 | • Ticket [684699ffff]: 1 change artifact: dfe7abc742 user: dgp | |
| 23:30 | • Ticket [684699ffff]: 5 changes artifact: 8f120fe28a user: dgp | |
| 16:22 | • New ticket [684699ffff]. artifact: f4045ab685 user: dgp | |
inconsistent NULL treatment
Closed / Fixed684699ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-02-11 16:22:45
In the current HEAD: % string length [encoding convertfrom identity \x00] 0 This is inconsistent with the result in both the 8.4.1 release and the 8.1.0 release (when [encoding] appeared): In 8.4.1: % string length [encoding convertfrom identity \x00] 1 Appears this inconsistency was introduced recently, and should be purged before 8.4.2 release.
dgpplain2003-02-11 23:30:20
Logged In: YES user_id=80530 suspect the 2003-01-24 commit to tclStringObj.c introduced this bug. Vince, please help us fix it.
dgp Ticket [684699ffff]: 1 change
[History diff]2003-02-11 23:33:30
dgpplain2003-02-11 23:44:58
Logged In: YES user_id=80530 correction: it was revision 1.25 of tclStringObj.c that intro'd this bug on 2002-11-12. Jeff, please help us fix it. :-) sorry, Vince.
dkfplain2003-02-11 23:56:00
Logged In: YES
user_id=79902
Lines that were:
while (*str && *str < 0xC0) { i++; str++; }
stringPtr->numChars = i;
if (*str) {
stringPtr->numChars += Tcl_NumUtfChars(objPtr->bytes+i,
objPtr->length - i);
}
Perhaps should be:
while (str != objPtr->bytes+objPtr->length) {
if (!(*str && *str < 0xC0)) {
stringPtr->numChars += Tcl_NumUtfChars(objPtr->bytes+i,
objPtr->length - i);
break;
}
i++;
str++;
}
hobbsplain2003-02-12 01:45:46
Logged In: YES user_id=72656 The fix was very simply to check against known obj length instead of just for *str != 0. Patched for 8.4.2. This was also a fix for 684744, which got another fix as well.
hobbs Ticket [684699ffff]: 2 changes
[History diff]2003-02-12 01:45:47
dgpplain2003-02-12 02:10:08
Logged In: YES user_id=80530 re-opened. The bug is not fixed. The new tests in the attempted fix, stringObj-13.7 and stringObj-13.8, fail.
hobbsplain2003-02-12 02:17:43
Logged In: YES user_id=72656 As miguel has confirmed the fixes, and I have confirmed on multiple systems, I'm suspecting a problem in Don's setup. He also is the only one to experience 684806 crash.
dgpplain2003-02-12 03:13:00
Logged In: YES user_id=80530 Always remember boys and girls to clear your sticky tags before atttempting to update and test the HEAD. This bug is fixed.
Log in (anonymous is fine) to add a comment.