(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/pop3-login/client.c) |
| |
| 192 | | | void client_input(struct pop3_client *client) |
| 193 | | | { |
| 194 | | | char *line, *args; |
| 195 | | | |
| 196 | | | i_assert(!client->common.authenticating);
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/macros.h |
| |
189 | #define i_assert(expr) STMT_START{ \ |
190 | if (unlikely(!(expr))) \ |
191 | i_panic("file %s: line %d (%s): assertion failed: (%s)", \ |
192 | __FILE__, \ |
193 | __LINE__, \ |
194 | __PRETTY_FUNCTION__, \ |
195 | #expr); }STMT_END |
| |
|
Event 1:
Skipping " if". !client->common.authenticating evaluates to true.
hide
Event 2:
Skipping " if". !!client->common.authenticating evaluates to false.
hide
Event 3:
Skipping " if". !!!client->common.authenticating evaluates to true.
hide
Event 4:
Skipping " if". !!!!client->common.authenticating evaluates to false.
hide
Event 5:
Skipping " if". __builtin_expect(...) evaluates to false.
hide
|
|
| 197 | | | |
| 198 | [+] | | if (!client_read(client)) |
 |
| 199 | | | return; |
| 200 | | | |
| 201 | | | client_ref(client); |
| 202 | | | |
| 203 | | | o_stream_cork(client->output); |
| 204 | | | |
| 205 | | | |
| 206 | | | while (!client->output->closed && !client->common.authenticating && |
| 207 | | | (line = i_stream_next_line(client->common.input)) != NULL) { |
| 208 | | | args = strchr(line, ' '); |
| 209 | | | if (args != NULL) |
Event 11:
Skipping " if". args != (void *)0 evaluates to false.
hide
|
|
| 210 | | | *args++ = '\0'; |
| 211 | | | |
| 212 | | | if (client_command_execute(client, line, |
| 213 | | | args != NULL ? args : "")) |
| 214 | | | client->bad_counter = 0; |
| 215 | | | else if (++client->bad_counter > CLIENT_MAX_BAD_COMMANDS) { |
Event 13:
Taking true branch. ++client->bad_counter > 10 evaluates to true.
hide
|
|
| 216 | | | client_send_line(client, "-ERR Too many bad commands."); |
| 217 | | | client_destroy(client, |
Event 14:
client is passed to client_destroy() as the first argument.
hide
|
|
| 218 | [+] | | "Disconnected: Too many bad commands"); |
 |
| |