Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at modes.c:428

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7250.28332
Procedure: modes_join
Trace: view
Modified: Thu Nov 26 11:08:53 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/core/modes.c
   Enter modes_join
 415 char *modes_join(IRC_SERVER_REC *server, const char *old,
 416                  const char *mode, int channel) 
 417 {
 418         GString *newmode;
 419         char *dup, *modestr, *curmode, type;
 420  
 421         g_return_val_if_fail(mode != NULL, NULL);
 422  
 423         type = '+';
 424         newmode = g_string_new(old);
 425  
 426         dup = modestr = g_strdup(mode);
true427         curmode = cmd_get_param(&modestr);
curmode <= 4095428         while (*curmode != '\0' && *curmode != ' ') {     /* Null Pointer Dereference */
Preconditions
mode != 0
Postconditions
_g_boolean_var_' = 1
curmode' = 0
dup' = 0
modestr' = 0
type' = 43




Change Warning 7250.28332 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: