Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at irc-commands.c:291

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7235.28316
Procedure: cmd_who
Trace: view
Modified: Thu Nov 26 11:08:40 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/irc-commands.c
   Enter cmd_who
 276 static void cmd_who(const char *data, IRC_SERVER_REC *server,
 277                     WI_ITEM_REC *item) 
 278 {
 279         char *channel, *rest;
 280         void *free_arg;
 281  
 282         CMD_IRC_SERVER(server);
 283  
 284         if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST, &channel, &rest))
 285                 return;
 286  
 287         if (strcmp(channel, "*") == 0 || *channel == '\0') {
 288                 if (!IS_IRC_CHANNEL(item))
 289                         cmd_param_error(CMDERR_NOT_JOINED);
 290  
true291                 channel = IRC_CHANNEL(item)->name;     /* Null Pointer Dereference */
Preconditions
data != 0
server->connected != 0
*chat_protocols->data != item->chat_type
$unknown_233243 = 0
strlen(&$unknown_233243) = 0
Postconditions
channel' = &$unknown_233243




Change Warning 7235.28316 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: