Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7231.28312
Procedure: cmd_ctcp
Trace: view
Modified: Thu Nov 26 11:08:38 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_ctcp
 90 static void cmd_ctcp(const char *data, IRC_SERVER_REC *server,
 91                      WI_ITEM_REC *item) 
 92 {
 93         const char *target;
 94         char *ctcpcmd, *ctcpdata;
 95         void *free_arg;
 96  
 97         CMD_IRC_SERVER(server);
 98  
 99         if (!cmd_get_params(data, &free_arg, 3 | PARAM_FLAG_GETREST,
 100                             &target, &ctcpcmd, &ctcpdata))
 101                 return;
 102         if (strcmp(target, "*") == 0)
true103                 target = item == NULL ? NULL : window_item_get_target(item);
target <= 4095104         if (*target == '\0' || *ctcpcmd == '\0')     /* Null Pointer Dereference */
Preconditions
data != 0
item = 0
server->connected != 0
$unknown_223442 = 42
strlen(&$unknown_223442) = 1
Postconditions
target' = 0




Change Warning 7231.28312 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: