Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at cmd-subscribe.c:59

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

cmd_subscribe_full

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap/cmd-subscribe.c)expand/collapse
Show more  
 29  bool cmd_subscribe_full(struct client_command_context *cmd, bool subscribe)
 30  {
 31          struct mail_namespace *ns, *real_ns;
 32          struct mail_storage *storage;
 33          const char *mailbox, *verify_name, *real_name;
 34   
 35          /* <mailbox> */
 36[+]         if (!client_read_string_args(cmd, 1, &mailbox))
 37                  return FALSE;
 38          verify_name = mailbox;
 39   
 40          real_name = mailbox;
 41[+]         storage = client_find_storage(cmd, &real_name);
 42          if (storage == NULL)
 43                  return TRUE;
 44   
 45          /* now find a namespace where the subscription can be added to */
 46          ns = mail_namespace_find_subscribable(cmd->client->user->namespaces,
 47[+]                                               &mailbox);
 48          if (ns == NULL) {
 49                  client_send_tagline(cmd, "NO Unknown subscription namespace.");
 50                  return TRUE;
 51          }
 52   
 53          real_ns = mail_storage_get_namespace(storage);
 54          if (ns != real_ns) {
 55                  /* subscription is being written to a different namespace
 56                     than where the mailbox exists. */
 57[+]                 mailbox = t_strconcat(real_ns->prefix, real_name, NULL);
 58                  /* drop the common prefix */
 59                  i_assert(strncmp(ns->prefix, mailbox, strlen(ns->prefix)) == 0);
Show more  




Change Warning 7988.24978 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: