Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at rawlog.c:210

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 811.26257
Procedure: rawlog_init
Trace: view
Modified: Thu Nov 26 10:57:55 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/core/rawlog.c
   Enter rawlog_init
 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  
 208         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 807.26253) */
 209  
Wrong Number of Parameters210         command_bind("rawlog", NULL, (SIGNAL_FUNC) cmd_rawlog);     /* Dangerous Function Cast */
 211         command_bind("rawlog save", NULL, (SIGNAL_FUNC) cmd_rawlog_save);   /* Dangerous Function Cast (ID: 810.26256) */
 212         command_bind("rawlog open", NULL, (SIGNAL_FUNC) cmd_rawlog_open);   /* Dangerous Function Cast (ID: 809.26255) */
 213         command_bind("rawlog close", NULL, (SIGNAL_FUNC) cmd_rawlog_close);   /* Dangerous Function Cast (ID: 808.26254) */
 214 } 
 215  
 216 void rawlog_deinit(void)
 217 {
 218         signal_remove("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 812.26258) */
 219  
 220         command_unbind("rawlog", (SIGNAL_FUNC) cmd_rawlog);   /* Dangerous Function Cast (ID: 816.26262) */




Change Warning 811.26257 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: