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

list_file_subdir

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/list/mailbox-list-fs-iter.c)expand/collapse
Show more  
 483  list_file_subdir(struct fs_list_iterate_context *ctx,
 484                   enum imap_match_result match, const char *list_path,
 485                   const char *fname)
 486  {
 487          struct list_dir_context *dir;
 488          DIR *dirp;
 489          enum imap_match_result match2;
 490          const char *vpath, *real_path;
 491          bool scan_subdir, delayed_send = FALSE;
 492          int ret;
 493   
 494[+]         vpath = t_strdup_printf("%s%c", list_path, ctx->sep);
 495[+]         match2 = imap_match(ctx->glob, vpath);
 496   
 497          if (match == IMAP_MATCH_YES)
 498                  ctx->info.name = p_strdup(ctx->info_pool, list_path);
 499          else if (match2 == IMAP_MATCH_YES)
 500[+]                 ctx->info.name = p_strdup(ctx->info_pool, vpath);
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  




Change Warning 7283.24969 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: