Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at perl-common.c:545

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2295.2304
Procedure: perl_command
Trace: View
Modified: Wed Sep 2 11:57:37 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/perl/perl-common.c
   Enter perl_command
 536 void perl_command(const char *cmd, SERVER_REC *server, WI_ITEM_REC *item) 
 537 {
 538         const char *cmdchars;
 539         char *sendcmd = (char *) cmd;
 540  
 541         if (*cmd == '\0')
 542                 return;
 543  
true544         cmdchars = settings_get_str("cmdchars");
cmdchars <= 4095545         if (strchr(cmdchars, *cmd) == NULL) {     /* Null Pointer Dereference */
Preconditions
*$param_1 != 0
strlen($param_1) != 0
Postconditions
cmd' = $param_1
cmdchars' = 0
item' = $param_3
sendcmd' = $param_1
server' = $param_2




Change Warning 2295.2304 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: