Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at channels-query.c:349

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 200.200
Procedure: query_current_error
Trace: View
Modified: Wed Sep 2 11:32:43 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/channels-query.c
   Enter query_current_error
 339  
 340         if (!abort_query) {
 341                 /* move all currently queried channels to main query lists */ 
 342                 for (tmp = rec->current_queries; tmp != NULL; tmp = tmp->next) {
 343                         rec->queries[query] = 
 344                                 g_slist_append(rec->queries[query], tmp->data);
 345                 }
 346         } else {
 347                 /* check if failed channels are synced after this error */ 
 348                 g_slist_foreach(rec->current_queries,
Wrong Number of Parameters349                                 (GFunc) channel_checksync, NULL);     /* Dangerous Function Cast */
 350         }
 351  
 352         g_slist_free(rec->current_queries);
 353         rec->current_queries = NULL;
 354  
 355         query_check(server);
 356 
 357  
 358 static void sig_channel_joined(IRC_CHANNEL_REC *channel)
 359 {




Change Warning 200.200 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: