Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at fe-log.c:435

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2251.2257
Procedure: autolog_open
Trace: View
Modified: Wed Sep 2 11:54:36 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/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
((char*)$param_1)[4] >= 1
((char*)$param_3)[1] = 0
((char*)logs->data)[64] != 0
strlen($param_3) = 1
*((char*)*logs->data)[40] = 0
chat_protocols = 0
Postconditions
$unknown_810248' != 37
$unknown_810248' != 47
$unknown_810248' != 0
strlen(&$unknown_810248)' = 1
((char*)&$unknown_810248)[1]' = 0
fixed_target' = &$unknown_810248
log' = logs->data
server' = $param_1
server_tag' = $param_2
target' = $param_3




Change Warning 2251.2257 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: