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
  • sendlib.c

    r4439 r4640  
    829829    FREE (&tcode[i]); 
    830830 
    831   FREE (tcode); 
     831  FREE (tcode);         /* __FREE_CHECKED__ */ 
    832832   
    833833  return ret; 
     
    18201820    { 
    18211821      unlink (msg); 
    1822       FREE (tempfile); 
     1822      FREE (tempfile);          /* __FREE_CHECKED__ */ 
    18231823      _exit (S_ERR); 
    18241824    } 
     
    18511851      { 
    18521852        unlink (*tempfile); /* no longer needed */ 
    1853         FREE (tempfile); 
     1853        FREE (tempfile);                /* __FREE_CHECKED__ */ 
    18541854      } 
    18551855    } 
     
    18611861      { 
    18621862        unlink (*tempfile); 
    1863         FREE (tempfile); 
     1863        FREE (tempfile);                /* __FREE_CHECKED__ */ 
    18641864      } 
    18651865    } 
     
    18731873      /* the parent is already dead */ 
    18741874      unlink (*tempfile); 
    1875       FREE (tempfile); 
     1875      FREE (tempfile);          /* __FREE_CHECKED__ */ 
    18761876    } 
    18771877