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

open_logfile

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/main.c)expand/collapse
Show more  
 54  static void open_logfile(void)
 55  {
 56          const char *env;
 57   
 58          if (getenv("LOG_TO_MASTER") != NULL) {
 59                  i_set_failure_internal();
 60                  return;
 61          }
 62   
 63          if (getenv("USE_SYSLOG") != NULL) {
 64                  env = getenv("SYSLOG_FACILITY");
 65                  i_set_failure_syslog("dovecot-auth", LOG_NDELAY,
 66                                       env == NULL ? LOG_MAIL : atoi(env));
 67          } else {
 68                  /* log to file or stderr */
 69                  i_set_failure_file(getenv("LOGFILE"), "dovecot-auth: ");
 70          }
 71   
 72          if (getenv("INFOLOGFILE") != NULL)
 73                  i_set_info_file(getenv("INFOLOGFILE"));
 74   
 75[+]         i_set_failure_timestamp_format(getenv("LOGSTAMP"));
expand/collapse

i_set_failure_timestamp_format

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/failures.c)expand/collapse
Show more  
 471  void i_set_failure_timestamp_format(const char *fmt)
 472  {
 473          i_free(log_stamp_format);
 474[+]         log_stamp_format = i_strdup(fmt);
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 11928.24795 : Null Pointer Dereference

Because they are very similar, this warning shares annotations with warnings 11928.24797 and 11928.24799.

Priority:
State:
Finding:
Owner:
Note: