1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libcli: Add a comment explaining lack of overflow checks

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2019-03-14 16:13:10 +01:00 committed by Jeremy Allison
parent 6625d35643
commit 636c09c813

View File

@ -852,6 +852,9 @@ static struct tevent_req *tstream_npa_writev_send(TALLOC_CTX *mem_ctx,
msg_len = 0; msg_len = 0;
for (i=0; i < count; i++) { for (i=0; i < count; i++) {
/*
* overflow check already done in tstream_writev_send
*/
msg_len += vector[i].iov_len; msg_len += vector[i].iov_len;
} }