Re: [PATCH] SN2: security hole in sn2_ptc_proc_write

Petr Tesarik
2008-06-22T19:13:36Z

On Sun, 2008-06-22 at 20:58 +0200, Bernhard Walle wrote:
> * Andi Kleen <andi@firstfloor.org> [2008-06-22 19:41]:
> >
> > You need if (count < 0 || count > 64) me thinks.
>
> size_t is unsigned.

Correct, that's why you need:

if (count <= 0 || count > 64)

Cheers,
Petr Tesarik