]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: repair read of uninitialized memory
authorJan Engelhardt <jengelh@inai.de>
Thu, 30 Jun 2022 16:47:25 +0000 (18:47 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 30 Jun 2022 16:54:23 +0000 (09:54 -0700)
commit16c086f48c2270ad6412ad7226df53079f825270
tree341bf78bcddecc397151cd904dfa9784e464306a
parent5d46434a63ae0160150a0efdde1914873697e273
testsuite: repair read of uninitialized memory

Function ``test_backoff_time`` does not initialize ``delta``, and
``get_backoff_delta_msec`` then performs a read from uninitialized
memory with the ``!*delta`` expression.

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/test-util.c