Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at modes.c:428

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2183.2188
Procedure: modes_join
Trace: View
Modified: Wed Sep 2 11:51:49 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/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
$param_3 != 0
Postconditions
_g_boolean_var_' = 1
channel' = $param_4
curmode' = 0
dup' = 0
mode' = $param_3
modestr' = 0
old' = $param_2
server' = $param_1
type' = 43




Change Warning 2183.2188 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: