Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 13f77557b1c8c0ebc65e8dcda9b9d275339cc15fbddc642023ae5ed8eae02933
Ticket: 77059c4f456952a4a7c23392b7a9a8d200bbcc39
TclPushVarName(): pointer overflow
User & Date: chrstphrchvz on 2023-05-08 20:05:19
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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 I would be better if there was a check for <tt>nameLen &lt; 1</tt> or <tt>&lt; 2</tt>.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "chrstphrchvz"
  14. subsystem changed to: "07. Variables"
  15. title changed to: "TclPushVarName(): pointer overflow"
  16. type changed to: "Bug"