lkml.org 
[lkml]   [2011]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2011-11-02 14:23    [W:0.027 / U:56.044 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site