Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Call  at dbox-index.c:103

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

dbox_index_parse_maildir

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-index.c)expand/collapse
Show more  
 90  static int dbox_index_parse_maildir(struct dbox_index *index, const char *line,
 91                                      struct dbox_index_record *rec)
 92  {
 93          char *p;
 94          unsigned long uid;
 95   
 96          if (*line++ != ' ')
 97                  return -1;
 98   
 99          uid = strtoul(line, &p, 10);
 100          if (*p++ != ' ' || *p == '\0' || uid == 0 || uid >= (uint32_t)-1)
 101                  return -1;
 102   
 103          if (*p == ':' || strstr(p, " :") != NULL)
 104                  rec->data = p_strdup(index->record_data_pool, line);
 105          else {
 106                  /* convert to new format */
 107                  rec->data = p_strconcat(index->record_data_pool,
 108                                          t_strdup_until(line, p), ":", p, NULL);
 109          }
 110          return 0;
 111  }
Show more  




Change Warning 12132.24639 : Unreachable Call

Priority:
State:
Finding:
Owner:
Note: