Skip to content
Tcl Source Code History Of Ticket abd489a1cf4782f0
Login

History Of Ticket abd489a1cf4782f0

Artifacts Associated With Ticket abd489a1cf4782f0

  1. Ticket change [ddd2f1ed33] (rid 219364) by chrstphrchvz on 2023-10-13 07:20:01:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      Example UBSan <tt>-fsanitize=function</tt> error:
      
      <pre>
      % string compare a b
      <span style="font-weight:bold">tcl/generic/tclCmdMZ.c:2863:10: <span style="color:firebrick">runtime error:</span> call to function TclpUtfNcmp2 through pointer to incorrect function type 'int (*)(const void *, const void *, unsigned long)'
      tclUtf.c:1233: <span style="color:gray">note:</span></span> TclpUtfNcmp2 defined here
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior tcl/generic/tclCmdMZ.c:2863:10 in 
      -1
      </pre>
      
      Some of the compare functions are public APIs, so I would suggest either using an enum to call functions directly, or wrapper functions (as done by the attached patch).
      
    5. foundin initialized to: "8.6.13"
    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: "18. Commands M-Z"
    15. title initialized to:
      TclStringCmp() calls functions through pointer to incorrect type
      
    16. type initialized to: "Patch"
  2. Add attachment "abd489a1cf47.diff" [71b201fb6a] (rid 219366) by chrstphrchvz on 2023-10-13 07:22:56.

  3. Add attachment "abd489a1cf47.diff" [c077eb7cc3] (rid 219368) by chrstphrchvz on 2023-10-13 07:24:30.

  4. Ticket change [70a87b05c5] (rid 219389) by jan.nijtmans on 2023-10-13 14:09:39:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Thanks for the patch! Looks good.
      
      In this case, it's slightly better to do the wrapping slightly different: [6d9d5ac6a75d7832].
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
    5. resolution changed to: "Fixed"
    6. status changed to: "Pending"
  5. Ticket change [db46df55c3] (rid 221090) by jan.nijtmans on 2023-12-30 00:20:14:

    1. closedate changed to: "2460308.51405524"
    2. closer changed to: "jan.nijtmans"
    3. icomment: "This should be fixed in all branches now"
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"