Text   |  XML   |  ReML   |   Visible Warnings:

Buffer Overrun  at strfuncs.c:39

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

child_process_init_env

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/child-process.c)expand/collapse
Show more  
 44  void child_process_init_env(void)
 45  {
 46          int facility;
 47   
 48          /* remove all environment, we don't need them */
 49          env_clean();
 50   
 51          /* we'll log through master process */
 52[+]         env_put("LOG_TO_MASTER=1");
 53          if (env_tz != NULL)
 54                  env_put(t_strconcat("TZ=", env_tz, NULL));
 55   
 56          if (settings_root == NULL ||
 57              !syslog_facility_find(settings_root->defaults->syslog_facility,
 58                                    &facility))
 59                  facility = LOG_MAIL;
 60[+][+]         env_put(t_strdup_printf("SYSLOG_FACILITY=%d", facility));
expand/collapse

env_put

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/env-util.c)expand/collapse
Show more  
 15  void env_put(const char *env)
 16  {
 17          if (env_pool == NULL) {
 18                  env_pool = pool_alloconly_create(MEMPOOL_GROWING"Environment",
 19                                                   2048);
 20          }
 21[+]         if (putenv(p_strdup(env_pool, env)) != 0)
expand/collapse

p_strdup

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/strfuncs.c)expand/collapse
Show more  
 31  char *p_strdup(pool_t pool, const char *str)
 32  {
 33          void *mem;
 34          size_t len;
 35   
 36          if (str == NULL)
 37                  return NULL;
 38   
 39          for (len = 0; (str)[len] != '\0'; )
 40                  len++;
Show more  
Show more  
Show more  




Change Warning 7724.24758 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: