Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at imem.c:25

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

mail_transaction_log_open

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log.c)expand/collapse
Show more  
 72  int mail_transaction_log_open(struct mail_transaction_log *log)
 73  {
 74          struct mail_transaction_log_file *file;
 75          const char *path;
 76          int ret;
 77   
 78          log->dotlock_settings.use_excl_lock = log->index->use_excl_dotlocks;
 79          log->dotlock_settings.nfs_flush = log->index->nfs_flush;
 80          log->new_dotlock_settings.use_excl_lock = log->index->use_excl_dotlocks;
 81          log->new_dotlock_settings.nfs_flush = log->index->nfs_flush;
 82   
 83          if (log->open_file != NULL)
 84                  mail_transaction_log_file_free(&log->open_file);
 85   
 86          if (MAIL_INDEX_IS_IN_MEMORY(log->index))
 87                  return 0;
 88   
 89          path = t_strconcat(log->index->filepath,
 90[+]                            MAIL_TRANSACTION_LOG_SUFFIX, NULL);
 91   
 92[+]         file = mail_transaction_log_file_alloc(log, path);
expand/collapse

mail_transaction_log_file_alloc

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log-file.c)expand/collapse
Show more  
 48  struct mail_transaction_log_file *
 49  mail_transaction_log_file_alloc(struct mail_transaction_log *log,
 50                                  const char *path)
 51  {
 52          struct mail_transaction_log_file *file;
 53   
 54          file = i_new(struct mail_transaction_log_file, 1);
 55          file->log = log;
 56[+]         file->filepath = i_strdup(path);
expand/collapse

i_strdup

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/imem.c)expand/collapse
Show more  
 23  char *i_strdup(const char *str)
 24  {
 25      char *rv = strdup( str );
Show more  
Show more  
Show more  




Change Warning 11828.25179 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: