Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at fe-log.c:435

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7316.28408
Procedure: autolog_open
Trace: view
Modified: Thu Nov 26 11:09:28 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/fe-common/core/fe-log.c
   Enter autolog_open
 418 static void autolog_open(SERVER_REC *server, const char *server_tag,
 419                          const char *target) 
 420 {
 421         LOG_REC *log;
 422         char *fname, *dir, *fixed_target, *params;
 423  
 424         log = logs_find_item(LOG_ITEM_TARGET, target, server_tag, NULL);
 425         if (log != NULL && !log->failed) {
 426                 log_start_logging(log);
 427                 return;
 428         }
 429  
 430         /* '/' -> '_' - don't even accidentally try to log to 
 431            #../../../file if you happen to join to such channel..
 432  
 433            '%' -> '%%' - so strftime() won't mess with them */ 
 434         fixed_target = escape_target(target);
true435         if (CHAT_PROTOCOL(server)->case_insensitive)     /* Null Pointer Dereference */
Preconditions
server->chat_type >= 1
target[1] = 0
((char*)logs->data)[32] != 0
strlen(target) = 1
*((char*)*logs->data)[20] = 0
chat_protocols = 0
Postconditions
$unknown_502535' != 37
$unknown_502535' != 47
$unknown_502535' != 0
strlen(&$unknown_502535)' = 1
((char*)&$unknown_502535)[1]' = 0
fixed_target' = &$unknown_502535
log' = logs->data




Change Warning 7316.28408 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: