Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2040.2040
Procedure: term_common_deinit
Trace: View
Modified: Wed Sep 2 11:48:27 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_deinit
 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) 
 173 {
 174         command_unbind("resize", (SIGNAL_FUNC) cmd_resize);   /* Dangerous Function Cast (ID: 2041.2041) */
Wrong Number of Parameters175         command_unbind("redraw", (SIGNAL_FUNC) cmd_redraw);     /* Dangerous Function Cast */
 176         signal_remove("beep", (SIGNAL_FUNC) term_beep);   /* Dangerous Function Cast (ID: 2039.2039) */
 177         signal_remove("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 2038.2038) */
 178 




Change Warning 2040.2040 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: