Re: [PATCH] fs/partitions/msdos.c Guard against negative sizes

From: Andries Brouwer (aebr@win.tue.nl)
Date: Mon Jan 27 2003 - 09:03:13 EST


[ach, I didnt pay attention, had not seen that this was cc-ed to l-k;
let me repeat on l-k]

On Mon, Jan 27, 2003 at 12:30:05PM +0100, Ph. Marek wrote:

> u32 size = NR_SECTS(p)*sector_size;
> - if (!size)
> + if (size <= 0)

This doesnt work since size is unsigned.

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 22:00:16 EST