Re: [Spice-devel] [PATCH 1/2] fix integer overflows in red_get_path

2016-06-05 Thread Fabiano FidĂȘncio
On Fri, Jun 3, 2016 at 2:03 PM, Frediano Ziglio wrote: > Use 64 bit arithmetic to avoid overflows. > The multiplication between count and a constant can overflow. > > Signed-off-by: Frediano Ziglio > --- > server/red-parse-qxl.c | 13 - > 1 file changed, 4 insertions(+), 9 deletions(

[Spice-devel] [PATCH 1/2] fix integer overflows in red_get_path

2016-06-03 Thread Frediano Ziglio
Use 64 bit arithmetic to avoid overflows. The multiplication between count and a constant can overflow. Signed-off-by: Frediano Ziglio --- server/red-parse-qxl.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/server/red-parse-qxl.c b/server/red-parse-qxl.c inde