Re: [PATCH BlueZ v2] lib: Fix sdp_seq_alloc_with_length accessing invalid index/memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Luiz,

On Thu, May 23, 2013, Luiz Augusto von Dentz wrote:
> The sequence itself is not an index of dtds, values, lengths, thats why
> SDP_SEQ8 is used directly as dtd, so accessing length[i] is always off
> by one.
> 
> Furthermore the length is not really used by sdp_data_alloc_with_length
> when the dtd is SDP_SEQ8 which is probably why it doesn't crash.
> ---
> v2: Fix length typo and add more clear description why this is currently
> not causing a crash.
> 
>  lib/sdp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied. Thanks.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux