Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 66ab1f4d81a7247348abc6a957348d8c7b59a5c5
Ticket: 3127687fffffffffffffffffffffffffffffffff
Triggers FORTIFY_SOURCE buffer overflow detection
User & Date: lool on 2010-12-04 23:54:57
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi there
    
    This affects tcl8.4 only, not tcl8.5.
    
    After a rebuild of tcl8.4 in Ubuntu, gitk and other applications were failing to start (even wish8.4 wouldn't start); these would fail with:
    *** buffer overflow detected ***: wish terminated
    followed by a backtrace.
    
    This is due to the _FORTIFY_SOURCE security feature, see:
    https://wiki.ubuntu.com/CompilerFlags#-D_FORTIFY_SOURCE=2
    https://wiki.ubuntu.com/Security/Features#Built%20with%20Fortify%20Source
    
    The original bug has details on why this occurs and is at:
    https://bugs.launchpad.net/ubuntu/+source/tcl8.4/+bug/683546
    
    As a workaround, I've changed the package to build generic/tclCmdMZ.c with -U_FORTIFY_SOURCE, but ideally the structure would declare the command[] with some define for the maximum length of variable names or commands.
    
    Cheers,
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "lool"
  10. subsystem changed to: "18. Commands M-Z"
  11. title changed to: "Triggers FORTIFY_SOURCE buffer overflow detection"
  12. type changed to: "Bug"