sdp_append_to_pdu statically allocates a buffer of 512 bytes. This patch calculates
the amount of memory needed and allocates dynamically using malloc.
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