squashfs-tools: fix segfault 4787/head
authorColby Whitney <colby.whitney@luxul.com>
Wed, 30 Aug 2017 17:26:47 +0000 (11:26 -0600)
committerColby Whitney <colby.whitney@luxul.com>
Mon, 11 Sep 2017 14:55:55 +0000 (08:55 -0600)
commit5917d336faefe558c17b06751d352fdcdae59acc
treec100a59842af0249390c1637db2ae25c789992f0
parentda11ac80ec8f6081b4708d19ef26c5733bbb6228
squashfs-tools: fix segfault

Unsquashfs was segfaulting.  When examining in gdb the stack was corrupt.
I found that converting the variable length arrays to malloc caused the
stack corruption to not happen and the segfault went away.  This is due to
the musl pthread stack size being 80k by default.  So the chance of a stack
overflow is high.

Signed-off-by: Colby Whitney <colby.whitney@luxul.com>
utils/squashfs-tools/Makefile
utils/squashfs-tools/patches/0004-vla-to-malloc.patch [new file with mode: 0644]