Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at mailbox-list-fs-iter.c:76

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

pattern_get_path_pos

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/list/mailbox-list-fs-iter.c)expand/collapse
Show more  
 64  pattern_get_path_pos(struct fs_list_iterate_context *ctx, const char *pattern,
 65                       const char *path, unsigned int *pos_r)
 66  {
 67          unsigned int i, j;
 68   
 69          if (strncasecmp(path, "INBOX", 5) == 0 && path[5] == ctx->sep) {
 70                  /* make sure INBOX prefix is matched case-insensitively */
 71[+]                 char *tmp = t_strdup_noconst(pattern);
 72   
 73                  if (strncmp(path, "INBOX", 5) != 0)
 74                          path = t_strdup_printf("INBOX%c%s", ctx->sep, path + 6);
 75   
 76                  for (i = 0; tmp[i] != ctx->sep && tmp[i] != '\0'; i++)
Show more  




Change Warning 7281.24781 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: