Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 169.169
Procedure: write_buffer_flush
Trace: View
Modified: Wed Sep 2 11:32:30 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 write_buffer_flush
 110                 write(handle, tmp->data, size);   /* Ignored Return Value (ID: 2403.2418) */
 111         }
 112  
 113         empty_blocks = g_slist_concat(empty_blocks, rec->blocks);
 114         g_free(rec);
 115         return TRUE;
 116 }
 117  
 118 void write_buffer_flush(void) 
 119 {
Wrong Number of Parameters120         g_slist_foreach(empty_blocks, (GFunc) g_free, NULL);     /* Dangerous Function Cast */
 121         g_slist_free(empty_blocks);
 122         empty_blocks = NULL;
 123  
 124         g_hash_table_foreach_remove(buffers,
 125                                     (GHRFunc) write_buffer_flush_rec, NULL);   /* Dangerous Function Cast (ID: 170.170) */
 126         block_count = 0;
 127 
 128  
 129 static int flush_timeout(void)
 130 {




Change Warning 169.169 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: