Unreachable Computation at ostream.c:153 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
o_stream_sendv (/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/ostream.c)![]() | ||||||
![]() | ||||||
132 | ssize_t o_stream_sendv(struct ostream *stream, const struct const_iovec *iov, | |||||
133 | unsigned int iov_count) | |||||
134 | { | |||||
135 | struct ostream_private *_stream = stream->real_stream; | |||||
136 | unsigned int i; | |||||
137 | size_t total_size; | |||||
138 | ssize_t ret; | |||||
139 | ||||||
140 | if (unlikely(stream->closed)) | |||||
141 | return -1; | |||||
142 | ||||||
143 | stream->stream_errno = 0; | |||||
144 | for (i = 0, total_size = 0; i < iov_count; i++) | |||||
145 | total_size += iov[i].iov_len; | |||||
146 | if (total_size == 0) | |||||
147 | return 0; | |||||
148 | ||||||
149 | ret = _stream->sendv(_stream, iov, iov_count); | |||||
150 | if (unlikely(ret != (ssize_t)total_size)) { | |||||
151 | if (ret < 0) { | |||||
152 | i_assert(stream->stream_errno != 0); | |||||
153 | stream->last_failed_errno = stream->stream_errno;
| |||||
154 | } else { | |||||
155 | stream->overflow = TRUE; | |||||
156 | } | |||||
157 | } | |||||
158 | return ret; | |||||
159 | } | |||||
![]() |