Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at strfuncs.c:304

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/imap/main.c)expand/collapse
Show more  
 99  static void open_logfile(void)
 100  {
 101          const char *user;
 102   
 103          if (getenv("LOG_TO_MASTER") != NULL) {
 104                  i_set_failure_internal();
 105                  return;
 106          }
 107   
 108          if (getenv("LOG_PREFIX") != NULL)
 109[+]                 i_strocpy(log_prefix, getenv("LOG_PREFIX"), sizeof(log_prefix));
expand/collapse

i_strocpy

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/strfuncs.c)expand/collapse
Show more  
 299  int i_strocpy(char *dest, const char *src, size_t dstsize)
 300  {
 301          if (dstsize == 0)
 302                  return -1;
 303   
 304          while (*src != '\0' && dstsize > 1) {
Show more  
Show more  




Change Warning 7992.24796 : Null Pointer Dereference

Because they are very similar, this warning shares annotations with warning 7992.24798.

Priority:
State:
Finding:
Owner:
Note: