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
  • imap/utf7.c

    r4343 r4640  
    261261    { 
    262262      char *u7 = utf8_to_utf7 (t, strlen (t), NULL, 0); 
    263       FREE (s); 
     263      FREE (s);         /* __FREE_CHECKED__ */ 
    264264      *s = u7; 
    265265    } 
     
    275275    if (t && !mutt_convert_string (&t, "UTF-8", Charset, 0)) 
    276276    { 
    277       FREE (s); 
     277      FREE (s);         /* __FREE_CHECKED__ */ 
    278278      *s = t; 
    279279    }