(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-mail/message-date.c) |
| |
| 95 | | | static int next_token(struct message_date_parser_context *ctx, |
| 96 | | | const unsigned char **value, size_t *value_len) |
| 97 | | | { |
| 98 | | | int ret; |
| 99 | | | |
| 100 | | | str_truncate(ctx->str, 0); |
| 101 | | | ret = ctx->parser.data == ctx->parser.end ? 0 : |
| 102 | | | rfc822_parse_atom(&ctx->parser, ctx->str); |
| 103 | | | |
| 104 | | | *value = str_data(ctx->str); |
| 105 | | | *value_len = str_len(ctx->str); |
| 106 | | | return ret < 0 ? -1 : *value_len > 0; |
Redundant Condition
*value_len > 0 always evaluates to false. This may be because: - There is a constant assignment to one or more of the variables involved.
- An earlier conditional statement has already ensured that *value_len > 0 cannot be true.
- A crashing bug occurs on every path where *value_len > 0 could have evaluated to true. Look for a preceding Null Pointer Dereference or Division By Zero warning.
|
|
| 107 | | | } |
| |