]> 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)
commit9a05842245db16c7633b00a2ed79f2871c88b17d
treed9e8bcd67cd27d75d8ef04e5c1b97e5306734714
parent1f9497ad56d7424147688ca98c1f9b0a41608362
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