Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at message-decoder.c:321

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

message_decode_body

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-mail/message-decoder.c)expand/collapse
Show more  
 249  static bool message_decode_body(struct message_decoder_context *ctx,
 250                                  struct message_block *input,
 251                                  struct message_block *output)
 252  {
 253          unsigned char new_buf[MAX_ENCODING_BUF_SIZE+1];
 254          const unsigned char *data = NULL;
 255          size_t pos, size = 0, skip = 0;
 256          int ret;
 257   
 258          if (ctx->encoding_size != 0) {
 259                  /* @UNSAFE */
 260                  memcpy(new_buf, ctx->encoding_buf, ctx->encoding_size);
 261                  skip = sizeof(new_buf) - ctx->encoding_size;
 262                  if (skip > input->size)
 263                          skip = input->size;
 264                  memcpy(new_buf + ctx->encoding_size, input->data, skip);
 265          }
 266   
 267          switch (ctx->content_type) {
 268          case CONTENT_TYPE_UNKNOWN:
 269                  /* just skip this body */
 270                  return FALSE;
 271   
 272          case CONTENT_TYPE_BINARY:
 273                  data = input->data;
 274                  size = pos = input->size;
 275                  break;
 276          case CONTENT_TYPE_QP:
 277                  buffer_set_used_size(ctx->buf, 0);
 278
310
Show [ Lines 278 to 310 omitted. ]
 311                  if (ret == 0) {
 312                          /* end of base64 input */
 313                          pos = input->size - skip;
 314                  }
 315                  pos += skip;
 316                  data = ctx->buf->data;
 317                  size = ctx->buf->used;
 318                  break;
 319          }
 320   
 321          if (pos != input->size) {
Show more  




Change Warning 7163.24744 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: