selftests: tls: handful of memrnd() and length checks
authorJakub Kicinski <kuba@kernel.org>
Wed, 27 Jul 2022 03:15:21 +0000 (20:15 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 04:49:59 +0000 (21:49 -0700)
commit86c591fb9142e772d3ba26b601f4a49123e7079c
treed9e8bcd67cd27d75d8ef04e5c1b97e5306734714
parentefe3e6b5aeefaabed9ad5dcb3682b581bf34c187
selftests: tls: handful of memrnd() and length checks

Add a handful of memory randomizations and precise length checks.
Nothing is really broken here, I did this to increase confidence
when debugging. It does fix a GCC warning, tho. Apparently GCC
recognizes that memory needs to be initialized for send() but
does not recognize that for write().

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tls.c