Skip to content
Tcl Source Code Artifact [a7ee015dd6]
Login

Artifact [a7ee015dd6]

Artifact a7ee015dd64db3dc7b48d9cf0dc1961093cd7bc1:

Manifest of check-in [a7ee015dd6] - Do not deallocate Tcl_ArraySearchStart()-initiated array searches when Tcl_ArraySearchPeek() or Tcl_ArraySearchNext() is called, only when Tcl_ArraySearchDone() is called. This avoids a crash should user code unconditionally call Tcl_ArraySearchDone() at the end of an array enumeration loop. This change does not affect array searches initiated by the Tcl script command [array startsearch]. by andy on 2016-12-25 00:23:21.
B 62368604eaa73f420ecc728c327ee67ece8956d2
C Do\snot\sdeallocate\sTcl_ArraySearchStart()-initiated\sarray\ssearches\swhen\sTcl_ArraySearchPeek()\sor\sTcl_ArraySearchNext()\sis\scalled,\sonly\swhen\sTcl_ArraySearchDone()\sis\scalled.\s\sThis\savoids\sa\scrash\sshould\suser\scode\sunconditionally\scall\sTcl_ArraySearchDone()\sat\sthe\send\sof\san\sarray\senumeration\sloop.\s\sThis\schange\sdoes\snot\saffect\sarray\ssearches\sinitiated\sby\sthe\sTcl\sscript\scommand\s[array\sstartsearch].
D 2016-12-25T00:23:21.301
F generic/tclVar.c 0fe50ed54ac30a5a7c9dd2c99e6650b988d4f975
F tests/array.test 05372b8519e10387b7e361be90b7c3ef4710f9ce
P 63059c3e09701aaabe2ae38b944d6bb5887493f3
U andy
Z d411ec2e15e5ce7c6b4049c31f41213f