[PATCH] nameif: fix invalid pointer and double-free cleanup problems

Denys Vlasenko vda.linux at googlemail.com
Thu Feb 28 09:33:01 UTC 2013


On Wed, Feb 20, 2013 at 7:43 PM, Thomas De Schampheleire
<patrickdepinguin+busybox at gmail.com> wrote:
> The cleanup code at the end of nameif would free the ch pointer, and
> then dereference it to obtain ch->next. This causes glibc to detect
> either 'invalid pointer' or 'double-free or corruption' problems.
>
> The problem arises for example when using nameif with an /etc/mactab
> file containing two entries: one with an existing MAC-address and one
> with a non-existing MAC address.
>
> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>

Applied, thanks!


More information about the busybox mailing list