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

restrict_access_set_env

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/restrict-access.c)expand/collapse
Show more  
 24  void restrict_access_set_env(const char *user, uid_t uid,
 25                               gid_t gid, gid_t privileged_gid,
 26                               const char *chroot_dir,
 27                               gid_t first_valid_gid, gid_t last_valid_gid,
 28                               const char *extra_groups)
 29  {
 30          if (user != NULL && *user != '\0')
 31                  env_put(t_strconcat("RESTRICT_USER=", user, NULL));
 32          if (chroot_dir != NULL && *chroot_dir != '\0')
 33                  env_put(t_strconcat("RESTRICT_CHROOT=", chroot_dir, NULL));
 34   
 35[+][+]         env_put(t_strdup_printf("RESTRICT_SETUID=%s", dec2str(uid)));
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 7124.24757 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: