Manifest of check-in
[3f9727b64f]
-
* generic/tclIO.c (ReadChars): Added check and panic and
commentary to a piece of code which relies on BUFFER_PADDING to
create enough space at the beginning of each buffer forthe
insertion of partial multi-byte data at the beginning of a
buffer. To explain why this code is ok, and as precaution if
someone twiddled the BUFFER_PADDING into uselessness.
* generic/tclIO.c (ReadChars): [SF Tcl Bug 1462248]. Added code
temporarily suppress the use of TCL_ENCODING_END set when eof
was reached while the buffer we are converting is not truly the
last buffer in the queue. together with the Utf bug below it was
possible to completely bollox the buffer data structures,
eventually crashing Tcl.
* generic/tclEncoding.c (UtfToUtfProc): Fixed problem where the
function accessed memory beyond the end of the input
buffer. When TCL_ENCODING_END is set and the last bytes of the
buffer start a multi-byte sequence. This bug contributed to [SF
Tcl Bug 1462248].
by
andreas_kupries on
2006-04-05 00:18:50.
B a4d30ff81ef9893cbdf7599a84aa3aa7026cc5c2
C \n\t*\sgeneric/tclIO.c\s(ReadChars):\sAdded\scheck\sand\spanic\sand\n\t\s\scommentary\sto\sa\spiece\sof\scode\swhich\srelies\son\sBUFFER_PADDING\sto\n\t\s\screate\senough\sspace\sat\sthe\sbeginning\sof\seach\sbuffer\sforthe\n\t\s\sinsertion\sof\spartial\smulti-byte\sdata\sat\sthe\sbeginning\sof\sa\n\t\s\sbuffer.\sTo\sexplain\swhy\sthis\scode\sis\sok,\sand\sas\sprecaution\sif\n\t\s\ssomeone\stwiddled\sthe\sBUFFER_PADDING\sinto\suselessness.\n\n\t*\sgeneric/tclIO.c\s(ReadChars):\s[SF\sTcl\sBug\s1462248].\sAdded\scode\n\t\s\stemporarily\ssuppress\sthe\suse\sof\sTCL_ENCODING_END\sset\swhen\seof\n\t\s\swas\sreached\swhile\sthe\sbuffer\swe\sare\sconverting\sis\snot\struly\sthe\n\t\s\slast\sbuffer\sin\sthe\squeue.\stogether\swith\sthe\sUtf\sbug\sbelow\sit\swas\n\t\s\spossible\sto\scompletely\sbollox\sthe\sbuffer\sdata\sstructures,\n\t\s\seventually\scrashing\sTcl.\n\n\t*\sgeneric/tclEncoding.c\s(UtfToUtfProc):\sFixed\sproblem\swhere\sthe\n\t\s\sfunction\saccessed\smemory\sbeyond\sthe\send\sof\sthe\sinput\n\t\s\sbuffer.\sWhen\sTCL_ENCODING_END\sis\sset\sand\sthe\slast\sbytes\sof\sthe\n\t\s\sbuffer\sstart\sa\smulti-byte\ssequence.\sThis\sbug\scontributed\sto\s[SF\n\t\s\sTcl\sBug\s1462248].\n
D 2006-04-05T00:18:50
F ChangeLog 4f77baf9d920bf4f399811f242bef0ec158c4ff7
F changes a1e7f29bc7c0fae7649ecee4887b158876bb4afe
F generic/tclEncoding.c 4a4d14e2d8423a9cf97d687cfd8aabb71c9880f9
F generic/tclExecute.c 7a7b0fdd1c21e1df0064871e2d0536a9d102cc2b
F generic/tclIO.c 1c1c7202f609aebee8000d72a70900a5403d8cb4
F generic/tclPathObj.c 123295612014c4ea0750f7e242eabc34574f23da
F tests/fileSystem.test 4c81ce9b5b1d8841f6001306caf313bd47b2b9c2
F win/Makefile.in ff5536a030c3bc380327426e519a38f52693bb39
P d467470b4620c57707c370d027448a94c620d753
U andreas_kupries
Z ae841bab9246a2e4396b7d163427dea8