#1318 exra bracket in nvlist command causes corrupt return value

open-fixed
ncgi (23)
5
2012-03-30
2012-03-30
Stephen Huntley
No

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.

Discussion

    • assigned_to: welch --> andreas_kupries
    • status: open --> open-fixed
     
  • 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.