Changeset 1009 for trunk/dll/literal.c


Ignore:
Timestamp:
May 10, 2008, 9:51:58 AM (18 years ago)
Author:
Steven Levine
Message:

Add xfree xstrdup Fortify support
Add MT capable Fortify scope logic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/literal.c

    r999 r1009  
    194194  cBufBytes = pszOut - pszWork;                /* Calc string length excluding terminator */
    195195  memcpy(pszBuf, pszWork, cBufBytes + 1);        /* Overwrite including terminator */
    196   xfree(pszWork);
     196  xfree(pszWork, pszSrcFile, __LINE__);
    197197
    198198  return cBufBytes;                        /* Return string length */
     
    297297      if (!(strchr(tcard, '?')) && !(strchr(tcard, '*'))){
    298298        if (strstr(fstr, tcard)){ //strstr match for *stuff* pattern no wildcards in "stuff"
    299           xfree(tcard);
     299          xfree(tcard, pszSrcFile, __LINE__);
    300300          return TRUE;
    301301        }
    302302        else{
    303           xfree(tcard);
     303          xfree(tcard, pszSrcFile, __LINE__);
    304304          return FALSE;
    305305        }
    306306      }
    307       xfree(tcard);
     307      xfree(tcard, pszSrcFile, __LINE__);
    308308    }
    309309    else   //reverse search for *stuff pattern "stuff" can contain wildcards
Note: See TracChangeset for help on using the changeset viewer.