Re: [PATCH] SN2: security hole in sn2_ptc_proc_write

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

 



On Sun, 2008-06-22 at 20:58 +0200, Bernhard Walle wrote:
> * Andi Kleen <andi@xxxxxxxxxxxxxx> [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


--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux