[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] usb-serial: Fix memory overruns with usb serial
From: |
Samuel Thibault |
Subject: |
Re: [Qemu-devel] [PATCH] usb-serial: Fix memory overruns with usb serial emulation |
Date: |
Wed, 17 Sep 2008 22:01:02 +0200 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Jason Wessel, le Wed 17 Sep 2008 06:54:47 -0500, a écrit :
> * Remove the unused send_buf variable and its constant.
>
> * Fix a math error
> The variables recv_ptr and recv_used are not large enough to hold
> the constant 384, which causes data corruption when the pointer is
> reset with: s->recv_ptr = (s->recv_ptr + len) % RECV_BUF;
>
> Signed-off-by: Jason Wessel <address@hidden>
Acked-by: Samuel Thibault <address@hidden>
Samuel