Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at write-buffer.c:145

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 873.26319
Procedure: read_settings
Trace: view
Modified: Thu Nov 26 10:58:09 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/write-buffer.c
   Enter read_settings
 135 static void read_settings(void) 
 136 {
 137         write_buffer_flush();
 138  
 139         write_buffer_max_blocks = 
 140                 settings_get_size("write_buffer_size") / BUFFER_BLOCK_SIZE;
 141  
 142         if (settings_get_time("write_buffer_timeout") > 0) {
 143                 if (timeout_tag == -1) {
 144                         timeout_tag = g_timeout_add(settings_get_time("write_buffer_timeout"),
Wrong Number of Parameters145                                                     (GSourceFunc) flush_timeout,     /* Dangerous Function Cast */
 146                                                     NULL);
 147                 }
 148         } else if (timeout_tag != -1) {
 149                 g_source_remove(timeout_tag);
 150                 timeout_tag = -1;
 151         }
 152 } 
 153  
 154 static void cmd_flushbuffer(void)
 155 {




Change Warning 873.26319 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: