Tcl Source Code

Artifact [39659cb9da]
Login

Artifact 39659cb9da3fd3cb1c0d72cff679864c284da483:

Ticket change [39659cb9da] - New ticket [4b3b7a3082] tcl8.5.15/generic/tclExecute.c:7713: array index before sanity check ?. by anonymous 2014-01-30 12:41:40.
D 2014-01-30T12:41:40.600
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment I\sjust\sran\sthe\sstatic\sanalysis\stool\s"cppcheck"\sover\sthe\s\r\nsource\scode\sof\stcl8.5.15\r\n\r\nIt\ssaid\smany\sthings,\sincluding\r\n\r\n[/home/dcb/rpmbuild/BUILD/tcl8.5.15/generic/tclExecute.c:7713]\s->\s[/home/dcb/rpmbuild/BUILD/tcl8.5.15/generic/tclExecute.c:7715]:\s(warning)\sArray\s'operatorStrings[34]'\saccessed\sat\sindex\s59,\swhich\sis\sout\sof\sbounds.\sOtherwise\scondition\s'opcode==99'\sis\sredundant.\r\n\r\nSource\scode\sis\r\n\r\n\s\s\s\sconst\schar\s*description,\s*operator\s=\soperatorStrings[opcode\s-\sINST_LOR];\r\n\r\n\s\s\s\sif\s(opcode\s==\sINST_EXPON)\s{\r\n\s\s\s\soperator\s=\s"**";\r\n\s\s\s\s}\r\n\r\nSuggest\smove\ssanity\scheck\sof\sopcode\sto\sbefore\sits\suse.
J foundin 8.5.15
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact f533d94444fa1c1e17d8636ae60bdc0a92db0074
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 47.\sBytecode\sCompiler
J title tcl8.5.15/generic/tclExecute.c:7713:\sarray\sindex\sbefore\ssanity\scheck\s?
J type Bug
K 4b3b7a30821038c72de6cbb4f96aa20dd8345613
U anonymous
Z bf42a50d7e2cb582db06adabd65a27b1