Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 167.167
Procedure: write_buffer_init
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_init
 163  
 164         buffers = g_hash_table_new((GHashFunc) g_direct_hash,
 165                                    (GCompareFunc) g_direct_equal);
 166  
 167         empty_blocks = NULL;
 168         block_count = 0;
 169  
 170         timeout_tag = -1;
 171         read_settings();
 172         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 168.168) */
Wrong Number of Parameters173         command_bind("flushbuffer", NULL, (SIGNAL_FUNC) cmd_flushbuffer);     /* Dangerous Function Cast */
 174 
 175  
 176 void write_buffer_deinit(void)
 177 {
 178         if (timeout_tag != -1)
 179                 g_source_remove(timeout_tag);
 180  
 181         write_buffer_flush();
 182         g_hash_table_destroy(buffers);
 183  




Change Warning 167.167 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: