Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2fa5bded1e7b4bee09df0dd507924f8981829a02797d8fb6e48b73e3c5cc5928
Ticket: 0439e1e1a37ff9c634280bc2490981f3e3c7e985
Slow detection of illegal expr argument
User & Date: jan.nijtmans on 2024-07-05 09:03:41
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Example:
    <pre>
    $ tclsh9.0
    % set x [lseq 1 11111111111111];set y 5
    5
    % expr {$x+$y}
    </pre>
    
    Doing this hangs a long time, because a string representation is generated for the lseq. But we know already that an lseq with 0 or  >1 entry can never be handled by '+'. Would be nice to detect that early, without taking that much time.
    
  5. foundin changed to: "8.7/9.0"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "jan.nijtmans"
  14. subsystem changed to: "48. Number Handling"
  15. title changed to: "Slow detection of illegal expr argument"
  16. type changed to: "Bug"