Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at write-buffer.c:145

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 166.166
Procedure: read_settings
Trace: View
Modified: Wed Sep 2 11:32:29 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/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 166.166 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: