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_create

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log.c)expand/collapse
Show more  
 103  int mail_transaction_log_create(struct mail_transaction_log *log, bool reset)
 104  {
 105          struct mail_transaction_log_file *file;
 106          const char *path;
 107   
 108          if (MAIL_INDEX_IS_IN_MEMORY(log->index)) {
 109                  file = mail_transaction_log_file_alloc_in_memory(log);
 110                  mail_transaction_log_set_head(log, file);
 111                  return 0;
 112          }
 113   
 114          path = t_strconcat(log->index->filepath,
 115[+]                            MAIL_TRANSACTION_LOG_SUFFIX, NULL);
 116   
 117[+]         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 11820.25555 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: