Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at mainwindows-layout.c:224

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 4219.28101
Procedure: mainwindows_layout_deinit
Trace: view
Modified: Thu Nov 26 11:06:36 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/mainwindows-layout.c
   Enter mainwindows_layout_deinit
 214 {
 215         signal_add("layout save window", (SIGNAL_FUNC) sig_layout_window_save);   /* Dangerous Function Cast (ID: 4206.28095) */
 216         signal_add("layout restore window", (SIGNAL_FUNC) sig_layout_window_restore);   /* Dangerous Function Cast (ID: 4214.28092) */
 217         signal_add("layout save", (SIGNAL_FUNC) sig_layout_save);   /* Dangerous Function Cast (ID: 4216.28096) */
 218         signal_add_first("layout restore", (SIGNAL_FUNC) sig_layout_restore);   /* Dangerous Function Cast (ID: 4208.28093) */
 219         signal_add("layout reset", (SIGNAL_FUNC) sig_layout_reset);   /* Dangerous Function Cast (ID: 4211.28094) */
 220 }
 221  
 222 void mainwindows_layout_deinit(void) 
 223 {
Wrong Number of Parameters224         signal_remove("layout save window", (SIGNAL_FUNC) sig_layout_window_save);     /* Dangerous Function Cast */
 225         signal_remove("layout restore window", (SIGNAL_FUNC) sig_layout_window_restore);   /* Dangerous Function Cast (ID: 4221.28097) */
 226         signal_remove("layout save", (SIGNAL_FUNC) sig_layout_save);   /* Dangerous Function Cast (ID: 4224.28098) */
 227         signal_remove("layout restore", (SIGNAL_FUNC) sig_layout_restore);   /* Dangerous Function Cast (ID: 4226.28099) */
 228         signal_remove("layout reset", (SIGNAL_FUNC) sig_layout_reset);   /* Dangerous Function Cast (ID: 4229.28100) */
 229 } 




Change Warning 4219.28101 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: