Re: [PATCH] mangle: check for end of string on every iteration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Sun, May 13, 2012 at 03:14:49PM -0400, Dave Reisner wrote:
> Checking for the null byte at the end of the string only conditionally
> leads to segfaults, evidenced by mount helpers crashing on writes to

 Ah.. sorry.

> /run/mount/utab. Simply check for the null on each iteration, and append
> a null byte to the mangled string before breaking.
> Signed-off-by: Dave Reisner <dreisner@xxxxxxxxxxxxx>
> ---
>  lib/mangle.c |    9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)

 Applied, thanks!


 Karel Zak  <kzak@xxxxxxxxxx>
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Site Home]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Memory]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Rubini]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]     [Linux Resources]

Powered by Linux