busybox: fix double free in top causing a SIGABRT storm after SIGPIPE
authorLuca Ceresoli <luca@lucaceresoli.net>
Fri, 19 Aug 2016 13:52:53 +0000 (15:52 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 19 Aug 2016 13:55:51 +0000 (15:55 +0200)
commit61ed56090c52d7617e5e8f4b30c88424d20268da
treec77c7e968453704e31270f22cff96ce5dab5ca97
parent19765d838f5308976bcbe6b892a33a2cd9dc1882
busybox: fix double free in top causing a SIGABRT storm after SIGPIPE

On some platforms the command 'top -n1 | head' goes very often into an
infinite loop of SIGABRT and double free()s.

Fix by applying a patch from upstream Busybox.

For a detailed explanation of the bug, see
http://lists.busybox.net/pipermail/busybox/2016-August/084555.html

Thanks to Yann for the help in finding this bug.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/busybox/0006-top-move-free-prev_hist-out-of-signal-path.patch [new file with mode: 0644]