(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/util/rawlog.c) |
| |
| 132 | | | static void server_input(struct rawlog_proxy *proxy) |
| 133 | | | { |
| 134 | | | unsigned char buf[OUTBUF_THRESHOLD]; |
| 135 | | | ssize_t ret; |
| 136 | | | |
| 137 | [+] | | if (o_stream_get_buffer_used_size(proxy->client_output) > |
 |
| 138 | | | OUTBUF_THRESHOLD) { |
Event 1:
Skipping " if". o_stream_get_buffer_used_size(...) > 1024 evaluates to false.
hide
|
|
| 139 | | | |
| 140 | | | |
| 141 | | | io_remove(&proxy->server_io); |
| 142 | | | return; |
| 143 | | | } |
| 144 | | | |
| 145 | [+] | | ret = net_receive(proxy->server_fd, buf, sizeof(buf)); |
Event 2:
1024 is passed to net_receive() as the third argument.
hide
|
|
 |
| 146 | | | if (ret > 0) { |
Event 27:
Taking true branch. ret > 0 evaluates to true.
hide
|
|
| 147 | | | (void)o_stream_send(proxy->client_output, buf, ret); |
| 148 | [+] | | proxy_write_out(proxy, buf, ret); |
Event 28:
ret, which evaluates to read(fd, buf, len) from network.c:456, is passed to proxy_write_out() as the third argument. See related event 26.
hide
|
|
 |
| |