Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 90169d4ee921adb15d12614e0496976e69b9325b
Ticket: 3127687fffffffffffffffffffffffffffffffff
Triggers FORTIFY_SOURCE buffer overflow detection
User & Date: lool on 2010-12-05 18:41:09
Changes

  1. icomment:
    Oddly, I don't hit the problem with wish8.5.  Maybe a different code path?
    
    I had tried changing command[4] to command[0], but that didn't work (it would still hit FORTIFY_SOURCE protection with a max size of zero).  However Kees Cook wrote to me that command[1] is how this should be defined.
    
    8.5 > As long as you don't hit FORTIFY_SOURCE protection, I guess it's best to keep it enabled, but if you do hit it then it would be nice to only disable it in the places where it's a false positive (rather than globally).
    
    Another way to avoid the issue entirely is to have a char *command and runtime allocate it, but that might have a performance hit.
    
    
  2. login: "lool"
  3. mimetype: "text/plain"
  4. username: "lool"