Menu

#1318 exra bracket in nvlist command causes corrupt return value

open-fixed
ncgi (23)
5
2012-03-30
2012-03-30
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

  • Andreas Kupries

    Andreas Kupries - 2012-03-30
    • assigned_to: welch --> andreas_kupries
    • status: open --> open-fixed
     
  • Andreas Kupries

    Andreas Kupries - 2012-03-30

    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.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.