[PATCH:libFS] Off-by-one error in FSGetErrorText bounds check

Julien Cristau jcristau at debian.org
Sat Feb 12 08:38:25 PST 2011


On Fri, Feb 11, 2011 at 18:35:04 -0800, Alan Coopersmith wrote:

> Read outside array bounds (CWE 125): In array dereference of <unknown> with index 'code'
>   Array size is 12 elements (of 4 bytes each), index >= 1 and index <= 12
>     at line 108 of libFS/src/FSErrDis.c in function 'FSGetErrorText'.
> 
> [ This bug was found by the Parfait 0.3.6 bug checking tool.
>   For more information see http://labs.oracle.com/projects/parfait/ ]
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
>  src/FSErrDis.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
Reviewed-by: Julien Cristau <jcristau at debian.org>

Cheers,
Julien


More information about the xorg-devel mailing list