Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-queries.c:273

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 988.988
Procedure: cmd_query
Trace: View
Modified: Wed Sep 2 11:38:13 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/fe-common/core/fe-queries.c
   Enter cmd_query
 262         else {
 263                 /* query already exists, set it active */ 
 264                 WINDOW_REC *window = window_item_window(query);
 265  
 266                 if (window != active_win)
 267                         window_set_active(window);
 268                 window_item_set_active(active_win, (WI_ITEM_REC *) query);
 269         }
 270  
 271         if (g_hash_table_lookup(optlist, "window") != NULL) {
 272                 signal_remove("query created",
Wrong Number of Parameters273                               (SIGNAL_FUNC) signal_query_created_curwin);     /* Dangerous Function Cast */
 274         }
 275  
 276         if (*msg != '\0') {
 277                 msg = g_strdup_printf("-nick %s %s", nick, msg);
 278                 signal_emit("command msg", 3, msg, server, query);
 279                 g_free(msg);
 280         }
 281  
 282         cmd_params_free(free_arg);
 283 




Change Warning 988.988 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: