Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at irc-chatnets.c:104

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 267.267
Procedure: irc_chatnets_deinit
Trace: View
Modified: Wed Sep 2 11:33:11 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/core/irc-chatnets.c
   Enter irc_chatnets_deinit
 94         GSList *tmp, *next;
 95  
 96         for (tmp = chatnets; tmp != NULL; tmp = next) {
 97                 CHATNET_REC *rec = tmp->data;
 98  
 99                 next = tmp->next;
 100                 if (IS_IRC_CHATNET(rec))
 101                         chatnet_destroy(rec);
 102         }
 103  
Wrong Number of Parameters104         signal_remove("chatnet read", (SIGNAL_FUNC) sig_chatnet_read);     /* Dangerous Function Cast */
 105         signal_remove("chatnet saved", (SIGNAL_FUNC) sig_chatnet_saved);   /* Dangerous Function Cast (ID: 266.266) */
 106         signal_remove("chatnet destroyed", (SIGNAL_FUNC) sig_chatnet_destroyed);   /* Dangerous Function Cast (ID: 265.265) */
 107 




Change Warning 267.267 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: