vnc-tight: fix regression with libxenstore
commit66668d197fa40747e835e15617eda2f1bc80982f
authorPeter Lieven <pl@kamp.de>
Fri, 15 Jul 2016 09:45:11 +0000 (15 11:45 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 15 Jul 2016 10:11:55 +0000 (15 12:11 +0200)
tree15752675cf5ec662c692dd3189001e62942c1526
parent3f7e51bca3ef2d64c53b35ab9916c99e4a9e3c69
vnc-tight: fix regression with libxenstore

commit 095497ff added thread local storage for the color counting
palette. Unfortunately, a VncPalette is about 7kB on a x86_64 system.
This memory is reserved from the stack of every thread and it
exhausted the stack space of a libxenstore thread.

Fix this by allocating memory only for the VNC encoding thread.

Fixes: 095497ffc66b7f031ff2a17f1e50f5cb105ce588
Reported-by: Juergen Gross <jgross@suse.com>
Tested-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Peter Lieven <pl@kamp.de>
Message-id: 1468575911-20656-1-git-send-email-pl@kamp.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc-enc-tight.c