Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at irc-commands.c:104

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2165.2169
Procedure: cmd_ctcp
Trace: View
Modified: Wed Sep 2 11:51:41 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/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
$param_1 != 0
$param_3 = 0
((char*)$param_2)[56] != 0
strlen(&$unknown_373853) = 1
Postconditions
data' = $param_1
item' = $param_3
server' = $param_2
target' = 0




Change Warning 2165.2169 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: