Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 780f5275adcecb2fac1be8d35b3d6437147fca87900f5b00d800f0007f7886ab
Ticket: 7346adc50fac47b5e7d3c7921d107457883846cc
Crash with encoding convertfrom iso2022-jp <string with escape sequence>
User & Date: anonymous on 2025-05-25 15:52:49
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    I hit an "Illegal instruction" crash while trying to parse old archived usenet posts with the mime library.  I can reproduce the issue with a single line:
    
    % ::encoding convertfrom iso2022-jp "\x1b\$B\$*;n\$"
    unable to realloc 82463372083200 bytes
    Illegal instruction
    
    The same code works without crashing in Tcl 8.6.10:
    
    % ::encoding convertfrom iso2022-jp "\x1b\$B\$*;n\$"
    お試
    %
    
    I have not dug into the C code involved here, but I would suspect that some length calculation has got broken in the 32->64bit transition.
    
  5. foundin changed to: "9.0.1"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Severe"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "11. Conversions from String"
  14. title changed to:
    Crash with encoding convertfrom iso2022-jp <string with escape sequence>
    
  15. type changed to: "Bug"