(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/log.c) |
| |
| 166 | | | static int log_read(struct log_io *log_io) |
| 167 | | | { |
| 168 | | | const unsigned char *data; |
| 169 | | | const char *line; |
| 170 | | | size_t size; |
| 171 | | | int ret; |
| 172 | | | |
| 173 | [+] | | if (!log_write_pending(log_io)) |
 |
| 174 | | | return 0; |
| 175 | | | |
| 176 | [+] | | ret = i_stream_read(log_io->stream); |
 |
| 177 | | | if (ret < 0) { |
Event 14:
Taking true branch. ret < 0 evaluates to true.
hide
|
|
| 178 | | | if (ret == -1) { |
Event 15:
Skipping " if". ret == -1 evaluates to false.
hide
|
|
| 179 | | | |
| 180 | | | log_unref(log_io); |
| 181 | | | return -1; |
| 182 | | | } |
| 183 | | | |
| 184 | | | |
| 185 | | | data = i_stream_get_data(log_io->stream, &size); |
| 186 | [+] | | line = t_strndup(data, size); |
 |
| 187 | | | i_stream_skip(log_io->stream, size); |
| 188 | | | |
| 189 | [+] | | if (!log_it(log_io, line, TRUE)) |
Event 25:
Skipping " if". !0 evaluates to true.
hide
Event 26:
line, which evaluates to NULL, is passed to log_it() as the second argument. See related event 24.
hide
|
|
 |
| |