Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 877.26323
Procedure: write_buffer_flush
Trace: view
Modified: Thu Nov 26 10:58:10 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 write_buffer_flush
 115         return TRUE;
 116 }
 117  
 118 void write_buffer_flush(void) 
 119 {
 120         g_slist_foreach(empty_blocks, (GFunc) g_free, NULL);   /* Dangerous Function Cast (ID: 876.26322) */
 121         g_slist_free(empty_blocks);
 122         empty_blocks = NULL;
 123  
 124         g_hash_table_foreach_remove(buffers,
Wrong Number of Parameters125                                     (GHRFunc) write_buffer_flush_rec, NULL);     /* Dangerous Function Cast */
 126         block_count = 0;
 127 } 
 128  
 129 static int flush_timeout(void)
 130 {
 131         write_buffer_flush();
 132         return 1;
 133 }
 134  
 135 static void read_settings(void)




Change Warning 877.26323 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: