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
  • check_sec.sh

    r3773 r4640  
    3636do_check '\<sprintf.*%s' __SPRINTF_CHECKED__ "Alert: Unchecked sprintf calls." 
    3737do_check '\<strncat' __STRNCAT_CHECKED__ "You probably meant safe_strcat here." 
     38do_check '\<safe_free' __SAFE_FREE_CHECKED__ "You probably meant FREE here." 
     39do_check '\<FREE[ ]?\([^&]' __FREE_CHECKED__ "You probably meant FREE(&...) here." 
    3840 
    3941# don't do this check on others' code.