Re: [PATCH] android/avrcp: Fix possible buffer overflow

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

 



Hi Andrei,

On Tue, Mar 18, 2014 at 2:24 PM, Andrei Emeltchenko
<Andrei.Emeltchenko.news@xxxxxxxxx> wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>
>
> ---
>  android/avrcp-lib.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/android/avrcp-lib.c b/android/avrcp-lib.c
> index 5bbc407..509b6c1 100644
> --- a/android/avrcp-lib.c
> +++ b/android/avrcp-lib.c
> @@ -831,7 +831,7 @@ int avrcp_set_addressed_player(struct avrcp *session, uint16_t player_id,
>  int avrcp_get_capabilities_rsp(struct avrcp *session, uint8_t transaction,
>                                                 uint8_t number, uint8_t *events)
>  {
> -       uint8_t pdu[AVRCP_EVENT_LAST];
> +       uint8_t pdu[AVRCP_EVENT_LAST + 1];
>
>         if (number > AVRCP_EVENT_LAST)
>                 return -EINVAL;
> --
> 1.8.3.2

Applied.


-- 
Luiz Augusto von Dentz
--
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