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

address_sanitize

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/deliver/deliver.c)expand/collapse
Show more  
 592  static const char *address_sanitize(const char *address)
 593  {
 594          struct message_address *addr;
 595          const char *ret, *mailbox;
 596          pool_t pool;
 597   
 598          pool = pool_alloconly_create("address sanitizer", 256);
 599          addr = message_address_parse(pool, (const unsigned char *)address,
 600[+]                                      strlen(address), 1, FALSE);
 601   
 602          if (addr == NULL || addr->mailbox == NULL || addr->domain == NULL ||
 603              *addr->mailbox == '\0')
 604                  ret = DEFAULT_ENVELOPE_SENDER;
 605          else {
 606[+]                 mailbox = escape_local_part(addr->mailbox);
 607                  if (*addr->domain == '\0')
 608[+]                         ret = t_strdup(mailbox);
expand/collapse

t_strdup

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/strfuncs.c)expand/collapse
Show more  
 215  const char *t_strdup(const char *str)
 216  {
 217[+]         return p_strdup(unsafe_data_stack_pool, str);
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 8007.25363 : Buffer Overrun

Priority:
State:
Finding:
Owner:
Note: