Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 874.26320
Procedure: write_buffer_init
Trace: view
Modified: Thu Nov 26 10:58: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/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: 875.26321) */
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 874.26320 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: