Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at dcc-autoget.c:48

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7275.28361
Procedure: sig_dcc_request
Trace: view
Modified: Thu Nov 26 11:09:04 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/irc/dcc/dcc-autoget.c
   Enter sig_dcc_request
 29 static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr) 
 30 {
 31         struct stat statbuf;
 32         const char *masks;
 33         char *str, *file;
 34         int max_size;
 35  
 36         if (!IS_DCC_GET(dcc)) return;
 37  
 38         /* check if we want to autoget file offer */ 
 39         if (!settings_get_bool("dcc_autoget"))
 40                 return;
 41  
 42         /* check for lowports */ 
 43         if (dcc->port < 1024 && !settings_get_bool("dcc_autoaccept_lowports"))
 44                 return;
 45  
 46         /* check that autoget masks match */ 
true47         masks = settings_get_str("dcc_autoget_masks");
masks <= 409548         if (*masks != '\0' &&     /* Null Pointer Dereference */
Preconditions
&$unknown_345528 != 0
&$unknown_345530 != 0
dcc->port <= 1023
Postconditions
masks' = 0




Change Warning 7275.28361 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: