Re: [Spice-devel] [PATCH spice-common] quic: avoid crash on specific images

2017-08-23 Thread Jonathon Jongsma
Acked-by: Jonathon Jongsma On Mon, 2017-08-21 at 09:31 -0400, Frediano Ziglio wrote: > ping > > > > > encodes_ones is called to encode a long sequence of 1 bits. > > In some conditions (I manage to reproduce with a 85000x4 pixel > > image fill with a single color) encodes_ones is called with a

Re: [Spice-devel] [PATCH spice-common] quic: avoid crash on specific images

2017-08-21 Thread Frediano Ziglio
ping > > encodes_ones is called to encode a long sequence of 1 bits. > In some conditions (I manage to reproduce with a 85000x4 pixel > image fill with a single color) encodes_ones is called with a > "n" value >= 32. > This cause encode to be called with a "len" value of 32 which > trigger this a

[Spice-devel] [PATCH spice-common] quic: avoid crash on specific images

2017-08-09 Thread Frediano Ziglio
encodes_ones is called to encode a long sequence of 1 bits. In some conditions (I manage to reproduce with a 85000x4 pixel image fill with a single color) encodes_ones is called with a "n" value >= 32. This cause encode to be called with a "len" value of 32 which trigger this assert: spice_asse