Re: [Qemu-devel] [PATCH] usbredir: fix buffer-overflow on vmload

2019-08-14 Thread Gerd Hoffmann
On Wed, Aug 07, 2019 at 12:40:48PM +0400, Marc-André Lureau wrote: > If interface_count is NO_INTERFACE_INFO, let's not access the arrays > out-of-bounds. > > ==994==ERROR: AddressSanitizer: heap-buffer-overflow on address > 0x625000243930 at pc 0x5642068086a8 bp 0x7f0b6f9ffa50 sp 0x7f0b6f9ffa40

Re: [Qemu-devel] [PATCH] usbredir: fix buffer-overflow on vmload

2019-08-07 Thread Philippe Mathieu-Daudé
On 8/7/19 10:40 AM, Marc-André Lureau wrote: > If interface_count is NO_INTERFACE_INFO, let's not access the arrays > out-of-bounds. > > ==994==ERROR: AddressSanitizer: heap-buffer-overflow on address > 0x625000243930 at pc 0x5642068086a8 bp 0x7f0b6f9ffa50 sp 0x7f0b6f9ffa40 > READ of size 1 at

Re: [Qemu-devel] [PATCH] usbredir: fix buffer-overflow on vmload

2019-08-07 Thread Li Qiang
Marc-André Lureau 于2019年8月7日 周三下午4:41写道: > If interface_count is NO_INTERFACE_INFO, let's not access the arrays > out-of-bounds. > > ==994==ERROR: AddressSanitizer: heap-buffer-overflow on address > 0x625000243930 at pc 0x5642068086a8 bp 0x7f0b6f9ffa50 sp 0x7f0b6f9ffa40 > READ of size 1 at 0x62500

Re: [Qemu-devel] [PATCH] usbredir: fix buffer-overflow on vmload

2019-08-07 Thread Liam Merwick
On 07/08/2019 09:40, Marc-André Lureau wrote: If interface_count is NO_INTERFACE_INFO, let's not access the arrays out-of-bounds. ==994==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x625000243930 at pc 0x5642068086a8 bp 0x7f0b6f9ffa50 sp 0x7f0b6f9ffa40 READ of size 1 at 0x625000243

[Qemu-devel] [PATCH] usbredir: fix buffer-overflow on vmload

2019-08-07 Thread Marc-André Lureau
If interface_count is NO_INTERFACE_INFO, let's not access the arrays out-of-bounds. ==994==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x625000243930 at pc 0x5642068086a8 bp 0x7f0b6f9ffa50 sp 0x7f0b6f9ffa40 READ of size 1 at 0x625000243930 thread T0 #0 0x5642068086a7 in usbredir_