]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8833a980e1f15d627789f2faefd50afac53c6f0f
treed9e8bcd67cd27d75d8ef04e5c1b97e5306734714
parent994bc868d8748037871f90ccb430b64d20545eeb
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