Menu

#4 Badly define string table arguments of Tcl_GetIndexFromObj()

open-accepted
None
5
2015-10-14
2012-07-11
No

The string table argument of Tcl_GetIndexFromObj() is stored in the Tcl_Obj's internal representation and thus must live at a fixed address, or we have a memory smash waiting to happen.

For reference: http://code.activestate.com/lists/tcl-core/11472/

The attached patch fixes the 3 instances of the problem found in tclAE.

Discussion

  • Andreas Kupries

    Andreas Kupries - 2012-07-11

    Fixes to Tcl_GetIndexFromObj() string table definitions.

     
  • Jonathan E. Guyer

    Thank you for the patch. I will try to find the time to apply and push a new release this weekend.

     
  • Jonathan E. Guyer

    • assigned_to: nobody --> jguyer
    • status: open --> open-accepted
     
  • Bernard Desgraupes

    Applied the patch. Thanks a lot.
    Will be in version 2.0.6.

     
MongoDB Logo MongoDB