(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log-append.c) |
| |
| 96 | | | static int log_buffer_write(struct log_append_context *ctx, bool want_fsync) |
| 97 | | | { |
| 98 | | | struct mail_transaction_log_file *file = ctx->file; |
| 99 | | | |
| 100 | | | if (MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file)) { |
Event 1:
Taking true branch. file->fd == -1 evaluates to true.
hide
|
|
| 101 | | | if (file->buffer == NULL) { |
Event 2:
Skipping " if". file->buffer == (void *)0 evaluates to false.
hide
|
|
| 102 | | | file->buffer = buffer_create_dynamic(default_pool, 4096); |
| 103 | | | file->buffer_offset = sizeof(file->hdr); |
| 104 | | | } |
| 105 | [+] | | buffer_append_buf(file->buffer, ctx->output, 0, (size_t)-1); |
Event 3:
-1 is passed to buffer_append_buf() as the fourth argument. - Determines the size in the Unreasonable Size Argument warning later.
hide
|
|
 |
| |