Show
Ignore:
Timestamp:
2006-05-18 10:35:29 (3 years ago)
Author:
Rocco Rutte <pdmef@…>
Branch:
HEAD
Message:

Avoid safe_free() usage and add security checks

Add checks to check_sec.sh for memory functions.

These include a check for use of safe_free() instead of FREE() and a
check whether FREE(&...) is used.

For the former, SAFE_FREE_CHECKED is to be used, for the latter
FREE_CHECKED to avoid messages from check_sec.sh

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rfc2231.c

    r4343 r4640  
    184184    FREE (&(*p)->attribute); 
    185185    FREE (&(*p)->value); 
    186     FREE (p); 
     186    FREE (p);           /* __FREE_CHECKED__ */ 
    187187  } 
    188188} 
     
    365365    if (d != *pd) 
    366366      FREE (&d); 
    367     FREE (pd); 
     367    FREE (pd);          /* __FREE_CHECKED__ */ 
    368368    *pd = e; 
    369369  } 
    370370  else if (d != *pd) 
    371371  { 
    372     FREE (pd); 
     372    FREE (pd);          /* __FREE_CHECKED__ */ 
    373373    *pd = d; 
    374374  }