Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at expandos.c:697

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 764.26210
Procedure: expandos_init
Trace: view
Modified: Thu Nov 26 10:57:37 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/core/expandos.c
   Enter expandos_init
 687                        "window server changed", EXPANDO_ARG_WINDOW, NULL);
 688         expando_create("itemname", expando_itemname,
 689                        "window changed", EXPANDO_ARG_NONE,
 690                        "window item changed", EXPANDO_ARG_WINDOW,
 691                        "window item name changed", EXPANDO_ARG_WINDOW_ITEM,
 692                        NULL);
 693  
 694         read_settings();
 695  
 696         timer_tag = g_timeout_add(1000, (GSourceFunc) sig_timer, NULL);   /* Dangerous Function Cast (ID: 765.26211) */
Wrong Number of Parameters697         signal_add("message public", (SIGNAL_FUNC) sig_message_public);     /* Dangerous Function Cast */
 698         signal_add("message private", (SIGNAL_FUNC) sig_message_private);   /* Dangerous Function Cast (ID: 763.26209) */
 699         signal_add("message own_private", (SIGNAL_FUNC) sig_message_own_private);   /* Dangerous Function Cast (ID: 762.26208) */
 700         signal_add_first("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 761.26207) */
 701 } 
 702  
 703 void expandos_deinit(void)
 704 {
 705         int n;
 706  
 707         for (n = 0; n < sizeof(char_expandos)/sizeof(char_expandos[0]); n++)




Change Warning 764.26210 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: