Re: [PATCH spice-server] test-qxl-parsing: Fix possible integer overflow

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

 



> 
> This fixes https://gitlab.freedesktop.org/spice/spice-server/issues/31.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/tests/test-qxl-parsing.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/tests/test-qxl-parsing.c
> b/server/tests/test-qxl-parsing.c
> index 60ca8f88c..76eab06ce 100644
> --- a/server/tests/test-qxl-parsing.c
> +++ b/server/tests/test-qxl-parsing.c
> @@ -96,7 +96,7 @@ static void test_memslot_invalid_slot_id(void)
>      RedMemSlotInfo mem_info;
>      init_meminfo(&mem_info);
>  
> -    memslot_get_virt(&mem_info, 1 << mem_info.memslot_id_shift, 16, 0);
> +    memslot_get_virt(&mem_info, ((QXLPHYSICAL) 1) <<
> mem_info.memslot_id_shift, 16, 0);
>  }
>  
>  static void test_memslot_invalid_addresses(void)

Please ignore, there was already a merge request for this.

Frediano
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]