Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at windows-layout.c:68

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2358.27353
Procedure: sig_layout_restore_item
Trace: view
Modified: Thu Nov 26 11:02:25 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-common/core/windows-layout.c
   Enter sig_layout_restore_item
 57         if (name == NULL || tag == NULL)
 58                 return;
 59  
 60         if (g_ascii_strcasecmp(type, "CHANNEL") == 0) {
 61                 /* bind channel to window */ 
 62                 WINDOW_BIND_REC *rec = window_bind_add(window, tag, name);
 63                 rec->sticky = TRUE;   /* Null Pointer Dereference (ID: 7336.28429) */
 64         } else if (g_ascii_strcasecmp(type, "QUERY") == 0 && chat_type != NULL) {
 65                 CHAT_PROTOCOL_REC *protocol;
 66                 /* create query immediately */ 
 67                 signal_add("query created",
Wrong Number of Parameters68                            (SIGNAL_FUNC) signal_query_created_curwin);     /* Dangerous Function Cast */
 69  
 70                 restore_win = window;
 71                  
 72                 protocol = chat_protocol_find(chat_type);
 73                 if (protocol->query_create != NULL)   /* Null Pointer Dereference (ID: 7335.28428) */
 74                         protocol->query_create(tag, name, TRUE);
 75                 else {
 76                         QUERY_REC *query;
 77  
 78                         query = g_new0(QUERY_REC, 1);




Change Warning 2358.27353 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: