Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 07cb8ca210b1c5631e5b1d9162bbf214852c3f73e1f9394fb3ce6767a8ccc4f0
Ticket: 96e5c814eb9ed95591ce30904943025c35673a96
Signed integer overflow in Clock_str2wideInt()
User & Date: chrstphrchvz on 2025-09-20 18:27:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    UBSan `-fsanitize=signed-integer-overflow` errors as encountered during these tests:
    
    * clock-6.9:
    `generic/tclClockFmt.c:192:21: runtime error: signed integer overflow: -9223372036854775800 - 9 cannot be represented in type 'Tcl_WideInt' (aka 'long long')`
    
    * clock-6.10:
    `generic/tclClockFmt.c:182:21: runtime error: signed integer overflow: 9223372036854775800 + 8 cannot be represented in type 'Tcl_WideInt' (aka 'long long')`
    
    * clock-6.10a:
    `generic/tclClockFmt.c:182:16: runtime error: signed integer overflow: 2767011611056432742 * 10 cannot be represented in type 'Tcl_WideInt' (aka 'long long')`
    
    * clock-6.10a-:
    `generic/tclClockFmt.c:192:16: runtime error: signed integer overflow: -2767011611056432742 * 10 cannot be represented in type 'Tcl_WideInt' (aka 'long long')`
    
    
    But maybe this is won't-fix, given the usage of `# pragma GCC optimize("no-trapv")`.
    
  5. foundin changed to: "core-9-0-branch"
  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: "16. Commands A-H"
  15. title changed to: "Signed integer overflow in Clock_str2wideInt()"
  16. type changed to: "Bug"