[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] nameif: fix invalid pointer and double-free cleanup problems
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2013-02-28 9:33:01
Message-ID: CAK1hOcNf9Tcz5Zysr66sBUCD66VF-92HYoqDwsRN3vvDzr0QGg () mail ! gmail ! com
[Download RAW message or body]
On Wed, Feb 20, 2013 at 7:43 PM, Thomas De Schampheleire
<patrickdepinguin+busybox@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@gmail.com>
Applied, thanks!
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic