Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at notifylist.c:66

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 668.668
Procedure: notifylist_destroy_all
Trace: View
Modified: Wed Sep 2 11:36:01 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
ProblemLineSource
   /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/irc/notifylist/notifylist.c
   Enter notifylist_destroy_all
 56  
 57 static void notify_destroy(NOTIFYLIST_REC *rec)
 58 {
 59         if (rec->ircnets != NULL) g_strfreev(rec->ircnets);
 60         g_free(rec->mask);
 61         g_free(rec);
 62 }
 63  
 64 void notifylist_destroy_all(void) 
 65 {
Wrong Number of Parameters66         g_slist_foreach(notifies, (GFunc) notify_destroy, NULL);     /* Dangerous Function Cast */
 67         g_slist_free(notifies);
 68  
 69         notifies = NULL;
 70 
 71  
 72 void notifylist_remove(const char *mask)
 73 {
 74         NOTIFYLIST_REC *rec;
 75  
 76         g_return_if_fail(mask != NULL);




Change Warning 668.668 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: