Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2a28195a4e11823af5b30ecc040ae1acf17679eeb1bd23c9901bf10435101bb9
Ticket: 02fe7f5c89c2b12c61474de3b6df8d165c24c698
tcl::unsupported::icu::detect missing 32-bit error-check
User & Date: jan.nijtmans on 2025-04-05 22:54:06
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    In line 352 of tclIcu.c:
    <pre>
        bytes = (char *) Tcl_GetBytesFromObj(interp, objPtr, &len);
    </pre>
    a few lines after that (line 363):
    <pre>
        ucsdet_setText(csd, bytes, len, &status);
    </pre>
    
    However the "len" parameter of ucsdet_setText() is int32_t, and no range-check is done (as in the other ICU functions. So if len > 2**31, this will lead to unexpected results.
    
    Discovered when working on TIP #626.
    
  5. foundin changed to: "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: "69. Other"
  15. title changed to:
    tcl::unsupported::icu::detect missing 32-bit error-check
    
  16. type changed to: "Bug"