Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 989.989
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
 244         server = cmd_options_get_server("query", optlist, server);
 245         if (server == NULL) {
 246                 cmd_params_free(free_arg);
 247                 return;
 248         }
 249  
 250         if (*nick != '=' && (server == NULL || !server->connected))
 251                 cmd_param_error(CMDERR_NOT_CONNECTED);
 252  
 253         if (g_hash_table_lookup(optlist, "window") != NULL) {
 254                 signal_add("query created",
Wrong Number of Parameters255                            (SIGNAL_FUNC) signal_query_created_curwin);     /* Dangerous Function Cast */
 256         }
 257  
 258         query = query_find(server, nick);
 259         if (query == NULL)
 260                 query = CHAT_PROTOCOL(server)->
 261                         query_create(server->tag, nick, FALSE);
 262         else {
 263                 /* query already exists, set it active */ 
 264                 WINDOW_REC *window = window_item_window(query);
 265  




Change Warning 989.989 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: