Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at term.c:159

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2036.2036
Procedure: term_common_init
Trace: View
Modified: Wed Sep 2 11:48:25 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-text/term.c
   Enter term_common_init
 149  
 150         force_colors = FALSE;
 151         term_use_colors = term_has_colors() && settings_get_bool("colors");
 152         read_settings();
 153  
 154         if (g_get_charset(&dummy)) {
 155                 term_type = TERM_TYPE_UTF8;
 156                 term_set_input_type(TERM_TYPE_UTF8);
 157         }
 158  
Wrong Number of Parameters159         signal_add("beep", (SIGNAL_FUNC) term_beep);     /* Dangerous Function Cast */
 160         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 2035.2035) */
 161         command_bind("resize", NULL, (SIGNAL_FUNC) cmd_resize);   /* Dangerous Function Cast (ID: 2034.2034) */
 162         command_bind("redraw", NULL, (SIGNAL_FUNC) cmd_redraw);   /* Dangerous Function Cast (ID: 2037.2037) */
 163  
 164 #ifdef SIGWINCH 
 165         sigemptyset (&act.sa_mask);
 166         act.sa_flags = 0;
 167         act.sa_handler = sig_winch;
 168         sigaction(SIGWINCH, &act, NULL);
 169 #endif 




Change Warning 2036.2036 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: