Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Computation  at imap-fetch-body.c:263

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

fetch_stream_send_direct

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap/imap-fetch-body.c)expand/collapse
Show more  
 247  static int fetch_stream_send_direct(struct imap_fetch_context *ctx)
 248  {
 249          off_t ret;
 250   
 251          o_stream_set_max_buffer_size(ctx->client->output, 0);
 252          ret = o_stream_send_istream(ctx->client->output, ctx->cur_input);
 253          o_stream_set_max_buffer_size(ctx->client->output, (size_t)-1);
 254   
 255          if (ret < 0)
 256                  return -1;
 257   
 258          ctx->cur_offset += ret;
 259   
 260          if (ctx->cur_append_eoh && ctx->cur_offset + 2 == ctx->cur_size) {
 261                  /* Netscape missing EOH workaround. */
 262                  if (o_stream_send(ctx->client->output, "\r\n", 2) < 0)
 263                          return -1;
 264                  ctx->cur_offset += 2;
 265                  ctx->cur_append_eoh = FALSE;
 266          }
 267   
 268          if (ctx->cur_offset != ctx->cur_size) {
 269                  /* unfinished */
 270                  if (!i_stream_have_bytes_left(ctx->cur_input)) {
 271                          /* Input stream gave less data than expected */
 272                          i_error("FETCH %s for mailbox %s UID %u "
 273                                  "got too little data (copying): "
 274                                  "%"PRIuUOFF_T" vs %"PRIuUOFF_T,
 275                                  ctx->cur_name, mailbox_get_name(ctx->mail->box),
 276                                  ctx->mail->uid, ctx->cur_offset, ctx->cur_size);
 277                          client_disconnect(ctx->client, "FETCH failed");
 278                          return -1;
 279                  }
 280   
 281                  o_stream_set_flush_pending(ctx->client->output, TRUE);
 282                  return 0;
 283          }
 284          return 1;
 285  }
Show more  




Change Warning 7991.24729 : Unreachable Computation

Priority:
State:
Finding:
Owner:
Note: