Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7232.28313
Procedure: cmd_nctcp
Trace: view
Modified: Thu Nov 26 11:08:39 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_nctcp
 124 static void cmd_nctcp(const char *data, IRC_SERVER_REC *server,
 125                       WI_ITEM_REC *item) 
 126 {
 127         const char *target;
 128         char *ctcpcmd, *ctcpdata, *recoded;
 129         void *free_arg;
 130  
 131         CMD_IRC_SERVER(server);
 132  
 133         if (!cmd_get_params(data, &free_arg, 3 | PARAM_FLAG_GETREST,
 134                             &target, &ctcpcmd, &ctcpdata))
 135                 return;
 136         if (strcmp(target, "*") == 0)
true137                 target = item == NULL ? NULL : window_item_get_target(item);
target <= 4095138         if (*target == '\0' || *ctcpcmd == '\0')     /* Null Pointer Dereference */
Preconditions
data != 0
item = 0
server->connected != 0
$unknown_225296 = 42
strlen(&$unknown_225296) = 1
Postconditions
target' = 0




Change Warning 7232.28313 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: