Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:drhax9908:branches:home:TrackMen:kernel-stable-backport:06.01.02
kmod
0001-testsuite-repair-read-of-uninitialized-mem...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-testsuite-repair-read-of-uninitialized-memory.patch of Package kmod
From 16c086f48c2270ad6412ad7226df53079f825270 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt <jengelh@inai.de> Date: Thu, 30 Jun 2022 18:47:25 +0200 Subject: [PATCH] testsuite: repair read of uninitialized memory References: https://github.com/kmod-project/kmod/pull/15 References: https://github.com/kmod-project/kmod/issues/14 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/test-util.c b/testsuite/test-util.c index fb8c9ef..5766584 100644 --- a/testsuite/test-util.c +++ b/testsuite/test-util.c @@ -231,7 +231,7 @@ DEFINE_TEST(test_addu64_overflow, static int test_backoff_time(const struct test *t) { - unsigned long long delta; + unsigned long long delta = 0; /* Check exponential increments */ get_backoff_delta_msec(now_msec(), now_msec() + 10, &delta); -- 2.36.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor