Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5ad022fd26de5fab0cfcf32f52cfe0acb6a5b2c0
Ticket: 902562ffffffffffffffffffffffffffffffffff
Un-free'd DString in regc_locale.c
User & Date: nobody on 2004-02-23 10:20:41
Changes

  1. assignee changed to: "pvgoran"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The function "cclass" in regc_locale.c
    has a Tcl_DString at line ~725 which is not
    properly Tcl_DStringFree'd.
    
    A memory leak can be triggered by:
    
    while {1} {
    
    set str 
    {a_very_very_long_string_which_is_greater_than_TCL_D
    STRING_STATIC_SIZE_characters_long_blahblahblahblahb
    lahblahblahblahblahblahblahblahblahblahblahblahblahblahbl
    ahblahblahblahblahblahblahblahblahblah}
    
     catch {
      regexp "a\[\[:$str\:\]\]b" axb
     }
    }
    
    
    Cheers, AJD.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "43. Regexp"
  10. title changed to: "Un-free'd DString in regc_locale.c"
  11. type changed to: "Bug"