Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at ostream.c:163

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

cmd_sync_callback

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap/imap-sync.c)expand/collapse
Show more  
 651  bool cmd_sync_callback(struct client_command_context *cmd,
 652                         enum mailbox_sync_flags flags,
 653                         enum imap_sync_flags imap_flags,
 654                         imap_sync_callback_t *callback)
 655  {
 656[+]         return cmd_sync_full(cmd, flags, imap_flags, NULL, callback);
expand/collapse

cmd_sync_full

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap/imap-sync.c)expand/collapse
Show more  
 610  cmd_sync_full(struct client_command_context *cmd, enum mailbox_sync_flags flags,
 611                enum imap_sync_flags imap_flags, const char *tagline,
 612                imap_sync_callback_t *callback)
 613  {
 614          struct client *client = cmd->client;
 615   
 616          i_assert(client->output_lock == cmd || client->output_lock == NULL);
 617   
 618          if (cmd->cancel)
 619                  return TRUE;
 620   
 621          if (client->mailbox == NULL) {
 622                  /* no mailbox selected, no point in delaying the sync */
 623                  i_assert(callback == NULL);
 624[+]                 client_send_tagline(cmd, tagline);
expand/collapse

client_send_tagline

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap/client.c)expand/collapse
Show more  
 244  void client_send_tagline(struct client_command_context *cmd, const char *data)
 245  {
 246          struct client *client = cmd->client;
 247          const char *tag = cmd->tag;
 248   
 249          if (client->output->closed || cmd->cancel)
 250                  return;
 251   
 252          if (tag == NULL || *tag == '\0')
 253                  tag = "*";
 254   
 255          (void)o_stream_send_str(client->output, tag);
 256          (void)o_stream_send(client->output, " ", 1);
 257[+]         (void)o_stream_send_str(client->output, data);
expand/collapse

o_stream_send_str

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/ostream.c)expand/collapse
Show more  
 161  ssize_t o_stream_send_str(struct ostream *stream, const char *str)
 162  {
 163          return o_stream_send(stream, str, strlen(str));
Show more  
Show more  
Show more  
Show more  




Change Warning 7985.24554 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: