Skip to content
Tcl Source Code History Of Ticket 3366265fffffffff
Login

History Of Ticket 3366265fffffffff

Artifacts Associated With Ticket 3366265fffffffff

  1. Ticket change [d1f4e33e66] (rid 113444) by dgp on 2011-07-13 17:41:36:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      New test in a --enable-symbols=all build :
      
      test proc-3.7 {TclObjInterpProc, wrong num args} {
          proc {} {x} {}
          list [catch {{}} msg] $msg
      } {1 {wrong # args: should be "{} x"}}
      
      produces this memory validation failure:
      
      Test file error: hi guard byte 0 is 0x0
      total mallocs                  35586
      total frees                    29673
      current packets allocated       5913
      current bytes allocated       510073
      maximum packets allocated       6380
      maximum bytes allocated       576498
      high guard failed at 164b5498, /home/dgp/fossil/tcl8.4/unix/../generic/tclProc.c 1161
      2 bytes allocated at (/home/dgp/fossil/tcl8.4/unix/../generic/tclProc.c 1158)
      Memory validation failure
      
      Thanks to "jboning" on the chat for reporting.
      
    4. foundin initialized to: "obsolete: 8.4.19"
    5. is_private initialized to: "0"
    6. priority initialized to: "9 Immediate"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "22. [proc] and [uplevel]"
    11. title initialized to: "buffer overflow due to TclObjInterpProc flaw"
    12. type initialized to: "Bug"
  2. Ticket change [b83fdabd8c] (rid 128937) by dgp on 2011-07-14 00:44:57:

    1. icomment:
      
      Problem is that line 1158 of tclProc.c allocates a buffer
      of only 2 bytes to hold the formatted value of the command
      name "{}", forgetting that Tcl_ConvertCountedElement() needs
      one additional byte in which to write the terminating NUL.
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [7288e3e987] (rid 100877) by dgp on 2011-07-14 00:54:31:

    1. icomment:
      
      Fix committed for 8.4.20.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [d3d0b87019] (rid 123350) by dgp on 2011-07-14 09:43:29:

    1. icomment:
      On the 8.5 branch, the bug's moved over to
      Tcl_WrongNumArgs().  It's also been defanged
      because the TclStackAlloc() allocator is now used,
      and that allocator doesn't have a memory debugger
      to trip, and in the failing case of an empty proc name,
      the TclStackAlloc() practice of allocating by pointer-sized
      words automatically provides enough extra overhead
      space to not permit a failure.
      
      Nevertheless, imagining some future maintenance
      programmer converting from TclStackAlloc() back
      to ckalloc(), it's best to get the requested size correct.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [b868330926] (rid 128963) by dgp on 2011-07-14 10:20:09:

    1. closedate changed to: "2011-07-14T03:20:09"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      fix merged to trunk as well.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"