Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at net-disconnect.c:105

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 82.82
Procedure: net_disconnect_later
Trace: View
Modified: Wed Sep 2 11:31:52 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/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: 81.81) */
 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 82.82 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: