Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at term.c:162

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 4587.28188
Procedure: term_common_init
Trace: view
Modified: Thu Nov 26 11:06:59 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-text/term.c
   Enter term_common_init
 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  
 159         signal_add("beep", (SIGNAL_FUNC) term_beep);   /* Dangerous Function Cast (ID: 4584.28187) */
 160         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 4582.28186) */
 161         command_bind("resize", NULL, (SIGNAL_FUNC) cmd_resize);   /* Dangerous Function Cast (ID: 4579.28185) */
Wrong Number of Parameters162         command_bind("redraw", NULL, (SIGNAL_FUNC) cmd_redraw);     /* Dangerous Function Cast */
 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 
 170 } 
 171  
 172 void term_common_deinit(void)




Change Warning 4587.28188 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: