Tcl Library Source Code

View Ticket
Login
Ticket UUID: 3513149
Title: exra bracket in nvlist command causes corrupt return value
Type: Bug Version: None
Submitter: blacksqr Created on: 2012-03-30 09:05:51
Subsystem: ncgi Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Open Last Modified: 2012-03-31 00:44:51
Resolution: Fixed Closed By:
    Closed on:
Description:
ncgi version 1.3.2

There is a typo on line 28 of the proc ncgi::nvlist:

set val [string range $x 1 end]]

Note the extra close bracket at the end of the statement.
Due to the strange coincidence of Tcl bug 3513146, this does not throw an error, but instead leads the proc to return a corrupt value.
User Comments: andreas_kupries added on 2012-03-31 00:44:51:
While this is certainly a bug in ncgi::nvlist the Tcl "bug" is no such.
Fix committed to CVS Head. 
Package version bumped to 1.3.3.