Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at textbuffer-view.c:96

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 4639.28218
Procedure: textbuffer_cache_destroy
Trace: view
Modified: Thu Nov 26 11:07: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/fe-text/textbuffer-view.c
   Enter textbuffer_cache_destroy
 86  
 87 static int line_cache_destroy(void *key, LINE_CACHE_REC *cache)
 88 {
 89         g_free(cache);
 90         return TRUE;
 91 }
 92  
 93 static void textbuffer_cache_destroy(TEXT_BUFFER_CACHE_REC *cache) 
 94 {
 95         g_hash_table_foreach(cache->line_cache,
Return Type Differs in Size; Cast from 4 to 0.96                              (GHFunc) line_cache_destroy, NULL);     /* Dangerous Function Cast */
 97         g_hash_table_destroy(cache->line_cache);
 98         g_free(cache);
 99 } 
 100  
 101 static void textbuffer_cache_unref(TEXT_BUFFER_CACHE_REC *cache)
 102 {
 103         if (--cache->refcount == 0)
 104                 textbuffer_cache_destroy(cache);
 105 }
 106  




Change Warning 4639.28218 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: