From c8b9823f68c6af0fa52e2c4e009aba4dbf257232 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 16 Apr 2020 16:05:04 +0200 Subject: [PATCH] avdtp/avrdp: use only 30 bytes for sdp attribute value buffer --- src/classic/avdtp.c | 2 +- src/classic/avrcp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classic/avdtp.c b/src/classic/avdtp.c index 7c042a8f7..0d3265ba0 100644 --- a/src/classic/avdtp.c +++ b/src/classic/avdtp.c @@ -54,7 +54,7 @@ #include "classic/sdp_util.h" static int record_id = -1; -static uint8_t attribute_value[1000]; +static uint8_t attribute_value[30]; static const unsigned int attribute_value_buffer_size = sizeof(attribute_value); // typedef struct { diff --git a/src/classic/avrcp.c b/src/classic/avrcp.c index 00ab1152a..b570c8c72 100644 --- a/src/classic/avrcp.c +++ b/src/classic/avrcp.c @@ -60,7 +60,7 @@ static const char * default_avrcp_target_service_provider_name = "BTstack AVRCP static uint16_t avrcp_cid_counter = 0; static avrcp_context_t * sdp_query_context; -static uint8_t attribute_value[1000]; +static uint8_t attribute_value[30]; static const unsigned int attribute_value_buffer_size = sizeof(attribute_value); static btstack_linked_list_t connections;