mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 14:18:36 +00:00
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_assert(len > 0 && len < 32); causing a crash. Instead of calling encode with a constant "len" as 32 call encode_32 which is supposed to encode exactly 32 bit. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com> |
||
|---|---|---|
| build-aux | ||
| common | ||
| docs | ||
| m4 | ||
| python_modules | ||
| tests | ||
| .gitmodules | ||
| autogen.sh | ||
| configure.ac | ||
| COPYING | ||
| git.mk | ||
| Makefile.am | ||
| spice1.proto | ||
| spice_codegen.py | ||
| spice.proto | ||