Re: [CHECKER] 16 more potential buffer overruns in 2.5.48

From: Chris Friesen (cfriesen@nortelnetworks.com)
Date: Wed Nov 20 2002 - 12:11:12 EST


Steven French wrote:

> As long as unsigned char can never go above 255 the code should
> work. It might have be more readable if it were defined as a __u8
> instead of an unsigned char.

Technically there is nothing that guarantees that an unsigned char is <=
8 bytes in size (although in practice it often is the case).

__u8 would definately be the way to go.

-- 
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com

- 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 : Sat Nov 23 2002 - 22:00:32 EST