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

mail_process_set_environment

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/mail-process.c)expand/collapse
Show more  
 298  mail_process_set_environment(struct settings *set, const char *mail,
 299                               const struct var_expand_table *var_expand_table,
 300                               bool exec_mail)
 301  {
 302          const char *const *envs;
 303          string_t *str;
 304          unsigned int i, count;
 305   
 306          env_put(t_strconcat("BASE_DIR=", set->base_dir, NULL));
 307          env_put(t_strconcat("MAIL_CACHE_FIELDS=",
 308                              set->mail_cache_fields, NULL));
 309          env_put(t_strconcat("MAIL_NEVER_CACHE_FIELDS=",
 310                              set->mail_never_cache_fields, NULL));
 311          env_put(t_strdup_printf("MAIL_CACHE_MIN_MAIL_COUNT=%u",
 312[+][+]                                 set->mail_cache_min_mail_count));
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 7735.24829 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: