Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at expandos.c:699

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 55.55
Procedure: expandos_init
Trace: View
Modified: Wed Sep 2 11:31:43 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/core/expandos.c
   Enter expandos_init
 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: 58.58) */
 697         signal_add("message public", (SIGNAL_FUNC) sig_message_public);   /* Dangerous Function Cast (ID: 57.57) */
 698         signal_add("message private", (SIGNAL_FUNC) sig_message_private);   /* Dangerous Function Cast (ID: 56.56) */
Wrong Number of Parameters699         signal_add("message own_private", (SIGNAL_FUNC) sig_message_own_private);     /* Dangerous Function Cast */
 700         signal_add_first("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 54.54) */
 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++)
 708                 g_free_not_null(char_expandos[n]);
 709  




Change Warning 55.55 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: