Overview
| Artifact ID: | 66ab1f4d81a7247348abc6a957348d8c7b59a5c5 |
|---|---|
| Ticket: | 3127687fffffffffffffffffffffffffffffffff
Triggers FORTIFY_SOURCE buffer overflow detection |
| User & Date: | lool on 2010-12-04 23:54:57 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- 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,
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "lool"
- subsystem changed to: "18. Commands M-Z"
- title changed to: "Triggers FORTIFY_SOURCE buffer overflow detection"
- type changed to: "Bug"