Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:Update
bluez.30122
mgmt-tester-Fix-null-dereference-issue-reported...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mgmt-tester-Fix-null-dereference-issue-reported-by-s.patch of Package bluez.30122
From e3c92f1f786f0b55440bd908b55894d0c792cf0e Mon Sep 17 00:00:00 2001 From: Tedd Ho-Jeong An <tedd.an@intel.com> Date: Wed, 22 Jun 2022 21:45:20 -0700 Subject: [PATCH] mgmt-tester: Fix null dereference issue reported by scan-build This patch fixes the null dereference reported by the scan-build. tools/mgmt-tester.c:12025:28: warning: Access to field 'cap_len' results in a dereference of a null pointer (loaded from variable 'rp') [core.NullDereference] if (sizeof(rp->cap_len) + rp->cap_len != length) { ^~~~~~~~~~~ --- tools/mgmt-tester.c | 2 ++ 1 file changed, 2 insertions(+) Index: bluez-5.62/tools/mgmt-tester.c =================================================================== --- bluez-5.62.orig/tools/mgmt-tester.c +++ bluez-5.62/tools/mgmt-tester.c @@ -10448,12 +10448,14 @@ static void read_50_controller_cap_compl tester_warn("Failed to read advertising features: %s (0x%02x)", mgmt_errstr(status), status); tester_test_failed(); + return; } if (sizeof(rp->cap_len) + rp->cap_len != length) { tester_warn("Controller capabilities malformed, size %zu != %u", sizeof(rp->cap_len) + rp->cap_len, length); tester_test_failed(); + return; } while (offset < rp->cap_len) {
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