Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at themes.c:1366

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1120.1120
Procedure: themes_init
Trace: View
Modified: Wed Sep 2 11:39:03 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/themes.c
   Enter themes_init
 1356  
 1357         default_formats = g_hash_table_new((GHashFunc) g_str_hash,
 1358                                            (GCompareFunc) g_str_equal);
 1359         internal_theme = read_internal_theme();
 1360  
 1361         init_finished = FALSE;
 1362         init_errors = NULL;
 1363  
 1364         themes_reload();
 1365  
Wrong Number of Parameters1366         command_bind("format", NULL, (SIGNAL_FUNC) cmd_format);     /* Dangerous Function Cast */
 1367         command_bind("save", NULL, (SIGNAL_FUNC) cmd_save);   /* Dangerous Function Cast (ID: 1119.1119) */
 1368         signal_add("complete command format", (SIGNAL_FUNC) sig_complete_format);   /* Dangerous Function Cast (ID: 1118.1118) */
 1369         signal_add("irssi init finished", (SIGNAL_FUNC) sig_print_errors);   /* Dangerous Function Cast (ID: 1117.1117) */
 1370         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 1116.1116) */
 1371         signal_add("setup reread", (SIGNAL_FUNC) themes_reload);   /* Dangerous Function Cast (ID: 1121.1121) */
 1372  
 1373         command_set_options("format", "delete reset");
 1374         command_set_options("save", "formats");
 1375 
 1376  




Change Warning 1120.1120 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: