2009-05-13 10:20:30

by Unai Uribarri

[permalink] [raw]
Subject: [PATCH] Allow to handle SDP records bigger than 512 bytes

sdp_append_to_pdu statically allocates a buffer of 512 bytes. This patch calculates
the amount of memory needed and allocates dynamically using malloc.


Attachments:
bluez-sdp-big-pdus.diff (2.30 kB)

2009-05-16 16:34:04

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [PATCH] Allow to handle SDP records bigger than 512 bytes

Hi Unai,

On Wed, May 13, 2009 at 7:20 AM, Unai Uribarri <[email protected]> wrote:
> sdp_append_to_pdu statically allocates a buffer of 512 bytes. This patch calculates
> the amount of memory needed and allocates dynamically using malloc.
>
>

Could you please test the following patch with the devices that was
triggering the crash:

http://gitorious.org/~vudentz/bluez/vudentzs-clone/commit/d3939bfff2f1c32f36b295d2c5173b11af686833

It is a very similar solution, though there are a lot of more places
addressed by it.

--
Luiz Augusto von Dentz
Engenheiro de Computa??o