Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:sp5-rebuild
bluez.30123
avdtp-Fix-parsing-capabilities.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avdtp-Fix-parsing-capabilities.patch of Package bluez.30123
From 0388794dc5fdb73a4ea88bcf148de0a12b4364d4 Mon Sep 17 00:00:00 2001 From: Archie Pusaka <apusaka@chromium.org> Date: Thu, 17 Jun 2021 08:53:34 +0800 Subject: [PATCH] avdtp: Fix parsing capabilities This patch fixes size comparison and variable misassignment. Reviewed-by: Alain Michaud <alainm@chromium.org> Reviewed-by: Michael Sun <michaelfsun@google.com> --- profiles/audio/avdtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: bluez-5.55/profiles/audio/avdtp.c =================================================================== --- bluez-5.55.orig/profiles/audio/avdtp.c +++ bluez-5.55/profiles/audio/avdtp.c @@ -1279,7 +1279,7 @@ static GSList *caps_to_list(uint8_t *dat cap = (struct avdtp_service_capability *)data; - if (sizeof(*cap) + cap->length >= size) { + if (sizeof(*cap) + cap->length > size) { error("Invalid capability data in getcap resp"); break; } @@ -1301,7 +1301,7 @@ static GSList *caps_to_list(uint8_t *dat switch (cap->category) { case AVDTP_MEDIA_CODEC: if (codec) - *codec = cap; + *codec = cpy; break; case AVDTP_DELAY_REPORTING: if (delay_reporting)
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