Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at rawlog.c:208

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 100.100
Procedure: rawlog_init
Trace: View
Modified: Wed Sep 2 11:32:07 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/core/rawlog.c
   Enter rawlog_init
 198         rawlog_close(server->rawlog);
 199 }
 200  
 201 void rawlog_init(void) 
 202 {
 203         signal_rawlog = signal_get_uniq_id("rawlog");
 204  
 205         settings_add_int("history", "rawlog_lines", 200);
 206         read_settings();
 207  
Wrong Number of Parameters208         signal_add("setup changed", (SIGNAL_FUNC) read_settings);     /* Dangerous Function Cast */
 209  
 210         command_bind("rawlog", NULL, (SIGNAL_FUNC) cmd_rawlog);   /* Dangerous Function Cast (ID: 104.104) */
 211         command_bind("rawlog save", NULL, (SIGNAL_FUNC) cmd_rawlog_save);   /* Dangerous Function Cast (ID: 103.103) */
 212         command_bind("rawlog open", NULL, (SIGNAL_FUNC) cmd_rawlog_open);   /* Dangerous Function Cast (ID: 102.102) */
 213         command_bind("rawlog close", NULL, (SIGNAL_FUNC) cmd_rawlog_close);   /* Dangerous Function Cast (ID: 101.101) */
 214 
 215  
 216 void rawlog_deinit(void)
 217 {
 218         signal_remove("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 105.105) */




Change Warning 100.100 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: