Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at mainwindows-layout.c:219

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1942.1942
Procedure: mainwindows_layout_init
Trace: View
Modified: Wed Sep 2 11:47:42 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/mainwindows-layout.c
   Enter mainwindows_layout_init
 209 {
 210         iconfig_set_str(NULL, "mainwindows", NULL);
 211 }
 212  
 213 void mainwindows_layout_init(void) 
 214 {
 215         signal_add("layout save window", (SIGNAL_FUNC) sig_layout_window_save);   /* Dangerous Function Cast (ID: 1940.1940) */
 216         signal_add("layout restore window", (SIGNAL_FUNC) sig_layout_window_restore);   /* Dangerous Function Cast (ID: 1943.1943) */
 217         signal_add("layout save", (SIGNAL_FUNC) sig_layout_save);   /* Dangerous Function Cast (ID: 1944.1944) */
 218         signal_add_first("layout restore", (SIGNAL_FUNC) sig_layout_restore);   /* Dangerous Function Cast (ID: 1941.1941) */
Wrong Number of Parameters219         signal_add("layout reset", (SIGNAL_FUNC) sig_layout_reset);     /* Dangerous Function Cast */
 220 
 221  
 222 void mainwindows_layout_deinit(void)
 223 {
 224         signal_remove("layout save window", (SIGNAL_FUNC) sig_layout_window_save);   /* Dangerous Function Cast (ID: 1949.1949) */
 225         signal_remove("layout restore window", (SIGNAL_FUNC) sig_layout_window_restore);   /* Dangerous Function Cast (ID: 1947.1947) */
 226         signal_remove("layout save", (SIGNAL_FUNC) sig_layout_save);   /* Dangerous Function Cast (ID: 1948.1948) */
 227         signal_remove("layout restore", (SIGNAL_FUNC) sig_layout_restore);   /* Dangerous Function Cast (ID: 1946.1946) */
 228         signal_remove("layout reset", (SIGNAL_FUNC) sig_layout_reset);   /* Dangerous Function Cast (ID: 1945.1945) */
 229 }




Change Warning 1942.1942 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: