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

mailbox_list_index_sync_init

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mailbox-list-index-sync.c)expand/collapse
Show more  
 409  int mailbox_list_index_sync_init(struct mailbox_list_index *index,
 410                                   const char *path,
 411                                   enum mailbox_list_sync_flags flags,
 412                                   struct mailbox_list_index_sync_ctx **ctx_r)
 413  {
 414          struct mailbox_list_index_sync_ctx *ctx;
 415          struct mailbox_list_index_view *view;
 416          pool_t pool;
 417          size_t len;
 418   
 419[+]         if (mailbox_list_index_view_init(index, NULL, &view) < 0)
 420                  return -1;
 421   
 422          /* add separator to end of path if it isn't there */
 423          len = strlen(path);
 424          if (len > 0 && path[len-1] != index->separator)
 425[+]                 path = t_strdup_printf("%s%c", path, index->separator);
 426   
 427          pool = pool_alloconly_create(MEMPOOL_GROWING"mailbox list index sync",
 428                                       1024*32);
 429   
 430          ctx = p_new(pool, struct mailbox_list_index_sync_ctx, 1);
 431          ctx->pool = pool;
 432          ctx->index = index;
 433          ctx->view = view;
 434[+]         ctx->sync_path = p_strdup(pool, path);
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 7266.25977 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: