Re: [Spice-devel] [PATCH spice-gtk v4 6/8] spice-uri: Check if port is in allowed range

2016-05-31 Thread Victor Toso
Hi, On Mon, May 30, 2016 at 05:46:48PM +0200, Pavel Grunt wrote: > Use g_ascii_strtoll because it helps to detect overflow. > > Related: rhbz#1335239 Acked-by: Victor Toso > --- > src/spice-uri.c| 8 ++-- > tests/test-spice-uri.c | 2 ++ > 2 files changed, 8

[Spice-devel] [PATCH spice-gtk v4 6/8] spice-uri: Check if port is in allowed range

2016-05-30 Thread Pavel Grunt
Use g_ascii_strtoll because it helps to detect overflow. Related: rhbz#1335239 --- src/spice-uri.c| 8 ++-- tests/test-spice-uri.c | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/spice-uri.c b/src/spice-uri.c index ea25aaa..7eec6e5 100644 ---