Changes On Branch 4055888f8f267de4
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch bug-0265750233 Excluding Merge-Ins

This is equivalent to a diff from d5cda795aa to 4055888f8f

2023-03-22
17:57
Merge 8.6 check-in: 6063e17e15 user: jan.nijtmans tags: core-8-branch
17:50
Fix [0265750233]: invalid read in cmdAH-4.3.13.C1.solo.utf-8.tcl8 check-in: 2ffcb8bcf4 user: jan.nijtmans tags: core-8-6-branch
17:34
Fix [0265750233]: invalid read in cmdAH-4.3.13.C1.solo.utf-8.tcl8. Closed-Leaf check-in: 9f7e05419e user: jan.nijtmans tags: mistake
16:36
Proposed fix for [0265750233]: invalid read in cmdAH-4.3.13.C1.solo.utf-8.tcl8. Closed-Leaf check-in: 4055888f8f user: jan.nijtmans tags: bug-0265750233
15:35
Simplify TIP #656 implementation. This also changes the TCL_ENCODING_PROFILE_* macro's to the same v... check-in: 303ca5c8ca user: jan.nijtmans tags: tip-656-simpl
12:02
Merge 8.7 check-in: f8d60e395f user: jan.nijtmans tags: trunk, main
11:44
Move (TCL_ENCODING_PROFILE_MASK|GET|SET) from tcl.h to tclIO.h, since those are not public. Some for... check-in: d5cda795aa user: jan.nijtmans tags: core-8-branch
09:41
code cleanup: use more *SURROGATE() macro's check-in: 6c6c7029c2 user: jan.nijtmans tags: core-8-branch

Changes to generic/tclUtf.c.
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
	if ((unsigned)(byte-0x80) < (unsigned)0x20) {
	    *chPtr = cp1252[byte-0x80];
	} else {
	    *chPtr = byte;
	}
	return 1;
    } else if (byte < 0xE0) {
	if ((src[1] & 0xC0) == 0x80) {
	    /*
	     * Two-byte-character lead-byte followed by a trail-byte.
	     */

	    *chPtr = (((byte & 0x1F) << 6) | (src[1] & 0x3F));
	    if ((unsigned)(*chPtr - 1) >= (UNICODE_SELF - 1)) {
		return 2;







|







460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
	if ((unsigned)(byte-0x80) < (unsigned)0x20) {
	    *chPtr = cp1252[byte-0x80];
	} else {
	    *chPtr = byte;
	}
	return 1;
    } else if (byte < 0xE0) {
	if ((byte != 0xC1) && (src[1] & 0xC0) == 0x80) {
	    /*
	     * Two-byte-character lead-byte followed by a trail-byte.
	     */

	    *chPtr = (((byte & 0x1F) << 6) | (src[1] & 0x3F));
	    if ((unsigned)(*chPtr - 1) >= (UNICODE_SELF - 1)) {
		return 2;