Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at net-disconnect.c:105

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 789.26235
Procedure: net_disconnect_later
Trace: view
Modified: Thu Nov 26 10:57:43 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/net-disconnect.c
   Enter net_disconnect_later
 94 {
 95         NET_DISCONNECT_REC *rec;
 96  
 97         rec = g_new(NET_DISCONNECT_REC, 1);
 98         rec->created = time(NULL);
 99         rec->handle = handle;
 100         rec->tag = g_input_add(handle, G_INPUT_READ,
 101                                (GInputFunction) sig_disconnect, rec);   /* Dangerous Function Cast (ID: 788.26234) */
 102  
 103         if (timeout_tag == -1) {
 104                 timeout_tag = g_timeout_add(10000, (GSourceFunc) 
Wrong Number of Parameters105                                             sig_timeout_disconnect, NULL);     /* Dangerous Function Cast */
 106         }
 107  
 108         disconnects = g_slist_append(disconnects, rec);
 109 } 
 110  
 111 void net_disconnect_init(void)
 112 {
 113         disconnects = NULL;
 114         timeout_tag = -1;
 115 }




Change Warning 789.26235 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: