Text   |  XML   |  ReML   |   Visible Warnings:

Format String  at imap-quota-plugin.c:63

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

quota_send

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/imap-quota/imap-quota-plugin.c)expand/collapse
Show more  
 32  quota_send(struct client_command_context *cmd, struct mail_user *owner,
 33             struct quota_root *root)
 34  {
 35          const char *name, *const *list;
 36          string_t *str;
 37          unsigned int i;
 38          uint64_t value, limit;
 39          int ret;
 40   
 41          str = t_str_new(128);
 42          str_append(str, "* QUOTA ");
 43          name = imap_quota_root_get_name(cmd->client->user, owner, root);
 44          imap_quote_append_string(str, name, FALSE);
 45   
 46          str_append(str, " (");
 47          list = quota_root_get_resources(root);
 48          for (i = 0; *list != NULL; list++) {
 49                  ret = quota_get_resource(root, "", *list, &value, &limit);
 50                  if (ret > 0) {
 51                          if (i > 0)
 52                                  str_append_c(str, ' ');
 53                          str_printfa(str, "%s %llu %llu", *list,
 54                                      (unsigned long long)value,
 55                                      (unsigned long long)limit);
 56                          i++;
 57                  } else if (ret < 0) {
 58                          client_send_line(cmd->client,  
 59                                  "* BAD Internal quota calculation error");
 60                  }
 61          }
 62          str_append_c(str, ')');
 63          client_send_line(cmd->client, str_c(str));
 64  }
Show more  




Change Warning 8192.26101 : Format String

Priority:
State:
Finding:
Owner:
Note: