Changeset 1078 for trunk/dll/command.c


Ignore:
Timestamp:
Jul 19, 2008, 6:08:02 AM (17 years ago)
Author:
Steven Levine
Message:

More Fortify infrastructure enhancements
Rework Fortify_SetOwner
Add Fortify_BecomeOwner
Avoid more spurious leak reports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/command.c

    r1039 r1078  
    2424  29 Feb 08 GKY Changes to enable user settable command line length
    2525  29 Feb 08 GKY Use xfree where appropriate
     26  18 Jul 08 SHL Add Fortify support
    2627
    2728***********************************************************************/
     
    355356        info = xmallocz(sizeof(LINKCMDS), pszSrcFile, __LINE__);
    356357        if (info) {
     358#         ifdef FORTIFY
     359          Fortify_SetOwner(info, 1);
     360          Fortify_SetScope(info, 1);
     361#         endif
    357362          info->pszCmdLine = xstrdup(pszCmdLine, pszSrcFile, __LINE__);
    358363          info->title = xstrdup(title, pszSrcFile, __LINE__);
     
    364369            break;
    365370          }
     371#         ifdef FORTIFY
     372          Fortify_SetOwner(info->pszCmdLine, 1);
     373          Fortify_SetScope(info->pszCmdLine, 1);
     374          Fortify_SetOwner(info->title, 1);
     375          Fortify_SetScope(info->title, 1);
     376#         endif
    366377          if (!cmdhead)
    367378            cmdhead = info;
Note: See TracChangeset for help on using the changeset viewer.