Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at themes.c:1371

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2177.27273
Procedure: themes_init
Trace: view
Modified: Thu Nov 26 11:02: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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/fe-common/core/themes.c
   Enter themes_init
 1361         init_finished = FALSE;
 1362         init_errors = NULL;
 1363  
 1364         themes_reload();
 1365  
 1366         command_bind("format", NULL, (SIGNAL_FUNC) cmd_format);   /* Dangerous Function Cast (ID: 2175.27272) */
 1367         command_bind("save", NULL, (SIGNAL_FUNC) cmd_save);   /* Dangerous Function Cast (ID: 2172.27271) */
 1368         signal_add("complete command format", (SIGNAL_FUNC) sig_complete_format);   /* Dangerous Function Cast (ID: 2170.27270) */
 1369         signal_add("irssi init finished", (SIGNAL_FUNC) sig_print_errors);   /* Dangerous Function Cast (ID: 2168.27269) */
 1370         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 2166.27268) */
Wrong Number of Parameters1371         signal_add("setup reread", (SIGNAL_FUNC) themes_reload);     /* Dangerous Function Cast */
 1372  
 1373         command_set_options("format", "delete reset");
 1374         command_set_options("save", "formats");
 1375 } 
 1376  
 1377 void themes_deinit(void)
 1378 {
 1379         while (themes != NULL)
 1380                 theme_destroy(themes->data);
 1381         theme_destroy(internal_theme);




Change Warning 2177.27273 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: