Projects
Eulaceura:Factory
lldpad
_service:obs_scm:backport-8021qaz-squelch-initi...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-8021qaz-squelch-initialization-errors.patch of Package lldpad
From 1459f3ca787e799eeddd40ca5abd28de1efc12b6 Mon Sep 17 00:00:00 2001 From: Aaron Conole <aconole@redhat.com> Date: Wed, 25 Aug 2021 10:29:19 -0400 Subject: [PATCH] 8021qaz: squelch initialization errors Some static analysis tools (like coverity) flag this array as accessed without proper initialization. Squelch by forcing initialization. Conflict:NA Reference:https://github.com/openSUSE/lldpad/commit/1459f3ca787e799eeddd40ca5abd28de1efc12b6 closes https://github.com/intel/openlldp/issues/77 Signed-off-by: Aaron Conole <aconole@redhat.com> --- lldp_8021qaz_clif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldp_8021qaz_clif.c b/lldp_8021qaz_clif.c index f776392..9031cb0 100644 --- a/lldp_8021qaz_clif.c +++ b/lldp_8021qaz_clif.c @@ -253,7 +253,7 @@ static void ieee8021qaz_print_app_tlv(u16 len, char *info) { u8 app, app_idx, app_prio, app_sel; u16 proto, offset = 2; - u8 dscp[MAX_USER_PRIORITIES][MAX_APP_ENTRIES]; + u8 dscp[MAX_USER_PRIORITIES][MAX_APP_ENTRIES] = {0}; u8 dscp_count[MAX_USER_PRIORITIES] = {0}; u8 i, j; bool first_app = true; -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2