[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20111102132123.GA18568@linux-mips.org>
Date: Wed, 2 Nov 2011 13:21:24 +0000
From: Ralf Baechle <ralf@...ux-mips.org>
To: Thomas Jarosch <thomas.jarosch@...ra2net.com>
Cc: linux-mips@...ux-mips.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fix off-by-two in arcs_cmdline buffer size check
On Sat, Oct 29, 2011 at 03:45:56PM +0200, Thomas Jarosch wrote:
> Cause is a misplaced bracket.
>
> The code
>
> strlen(buf+1)
>
> will be two bytes less than
>
> strlen(buf)+1
>
> The +1 is in this code to reserve space for an additional space character.
Thanks, applied.
The same buggy code just formatted slightly differently also exists in
Emma. I added the Emma fix to the patch and applied it.
Thanks!
Ralf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists