Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at dcc-queue.c:213

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1340.26786
Procedure: dcc_queue_init
Trace: view
Modified: Thu Nov 26 11:00: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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/irc/dcc/dcc-queue.c
   Enter dcc_queue_init
 203                         if (rec != NULL && rec->chat == dcc)
 204                                 rec->chat = NULL;
 205                }
 206         }
 207 }
 208  
 209 void dcc_queue_init(void) 
 210 {
 211         queuelist = g_ptr_array_new();
 212  
Wrong Number of Parameters213         signal_add("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed);     /* Dangerous Function Cast */
 214 } 
 215  
 216 void dcc_queue_deinit(void)
 217 {
 218         int i;
 219  
 220         for (i = 0; i < queuelist->len; i++)
 221                 dcc_queue_free(i);
 222  
 223         g_ptr_array_free(queuelist, TRUE);




Change Warning 1340.26786 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: