Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at perl-common.c:545

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7357.28454
Procedure: perl_command
Trace: view
Modified: Thu Nov 26 11:10:02 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/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
*cmd != 0
strlen(cmd) != 0
Postconditions
cmdchars' = 0
sendcmd' = cmd




Change Warning 7357.28454 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: