Skip to content
Tcl Source Code History Of Ticket 77059c
Login

History Of Ticket 77059c

Artifacts Associated With Ticket 77059c

  1. Ticket change [13f77557b1] (rid 214715) by chrstphrchvz on 2023-05-08 20:05:19:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      Doing <tt>set {}</tt> (e.g. from var-6.3) triggers an <tt>-fsanitize=pointer-overflow</tt> error:
      <pre>
      generic/tclCompCmds.c:3454:6: runtime error: addition of unsigned offset to 0x603000023a75 overflowed to 0x603000023a74
      </pre>
      This might seem due to <tt>nameLen</tt> now being <tt>size_t</tt>, but I think I would be better if there was a check for <tt>nameLen &lt; 1</tt> or <tt>&lt; 2</tt>.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "chrstphrchvz"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "chrstphrchvz"
    14. subsystem initialized to: "07. Variables"
    15. title initialized to: "TclPushVarName(): pointer overflow"
    16. type initialized to: "Bug"
  2. Ticket change [ec17c52b90] (rid 214716) by chrstphrchvz on 2023-05-08 20:08:11:

    1. comment changed to:
      Doing <tt>set {}</tt> (e.g. from var-6.3) triggers an <tt>-fsanitize=pointer-overflow</tt> error:
      <pre>
      generic/tclCompCmds.c:3454:6: runtime error: addition of unsigned offset to 0x603000023a75 overflowed to 0x603000023a74
      </pre>
      This might seem due to <tt>nameLen</tt> now being <tt>size_t</tt>, but I think it would be better if there was a check for <tt>nameLen &lt; 1</tt> or <tt>&lt; 2</tt>.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/plain"
  3. Ticket change [5680ca5b84] (rid 245595) by chrstphrchvz on 2025-09-17 23:20:17:

    1. icomment:
      A better possible fix might be to declare `nameLen` as `Tcl_Size`.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-markdown"
  4. Ticket change [77c904c4e1] (rid 245596) by chrstphrchvz on 2025-09-17 23:24:32:

    1. foundin changed to: "core-9-0-branch"
    2. login: "chrstphrchvz"
    3. mimetype: "text/plain"
  5. Ticket change [ca511ed8e6] (rid 245621) by jan.nijtmans on 2025-09-18 09:38:10:

    1. icomment: "Like [1a3e5bdaf5|this]?"
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [b51fcdcfd7] (rid 245654) by chrstphrchvz on 2025-09-18 18:08:09:

    1. icomment:
      I had thought of using `Tcl_Size` in case the current behavior was correct and that the overflow was harmless. But looking again, I see how the overflow suggests there is a problem, so I agree with Jan proposed's fix.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-markdown"
  7. Ticket change [1091f5145f] (rid 245685) by jan.nijtmans on 2025-09-19 17:08:26:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2460938.21419959"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed [ef820cf3b7e15fc3|here] (and in all other branches as well)
      
      Thanks!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"