Re: [Spice-devel] [vdagent-win PATCH] Prevent possible future buffer overflow

2017-07-26 Thread Christophe de Dinechin
> On 26 Jul 2017, at 09:21, Frediano Ziglio wrote: > > event_type should come only with specific values but > this in theory can change in the future. > To prevent overflows (just for logging) check value size > against lookup array. > > Signed-off-by: Frediano Ziglio > --- > vdservice/vdservi

[Spice-devel] [vdagent-win PATCH] Prevent possible future buffer overflow

2017-07-26 Thread Frediano Ziglio
event_type should come only with specific values but this in theory can change in the future. To prevent overflows (just for logging) check value size against lookup array. Signed-off-by: Frediano Ziglio --- vdservice/vdservice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --