Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
No build reason found for SLE-Module-Web-Scripting:aarch64
openSUSE:Leap:42.1
alsa
0066-topology-data-Fix-wrong-size-check-in-tplg...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0066-topology-data-Fix-wrong-size-check-in-tplg_parse_dat.patch of Package alsa
From 5b21400c42877ff6c2a386c7c5ed5c6c6c9bf664 Mon Sep 17 00:00:00 2001 From: Takashi Iwai <tiwai@suse.de> Date: Tue, 8 Sep 2015 22:11:48 +0200 Subject: [PATCH] topology: data: Fix wrong size check in tplg_parse_data_hex() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A wrong, uninitialized variable is referred as the size to check in tplg_parse_data_hex(). Spotted by gcc warning: data.c: In function ‘tplg_parse_data_hex’: data.c:228:5: warning: ‘esize’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (esize > TPLG_MAX_PRIV_SIZE) { ^ data.c:211:12: note: ‘esize’ was declared here int size, esize, off, num; ^ Signed-off-by: Takashi Iwai <tiwai@suse.de> --- src/topology/data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/topology/data.c b/src/topology/data.c index 4ee1f8a15f95..370c0faead36 100644 --- a/src/topology/data.c +++ b/src/topology/data.c @@ -225,8 +225,8 @@ static int tplg_parse_data_hex(snd_config_t *cfg, struct tplg_elem *elem, size = num * width; priv = elem->data; - if (esize > TPLG_MAX_PRIV_SIZE) { - SNDERR("error: data too big %d\n", esize); + if (size > TPLG_MAX_PRIV_SIZE) { + SNDERR("error: data too big %d\n", size); return -EINVAL; } -- 2.5.3
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