libcli: Add a comment explaining lack of overflow checks
authorVolker Lendecke <vl@samba.org>
Thu, 14 Mar 2019 15:13:10 +0000 (16:13 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 18 Mar 2019 19:21:23 +0000 (19:21 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/named_pipe_auth/npa_tstream.c

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