bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] Use size_t for variable list size and length


From: Chet Ramey
Subject: Re: [PATCH] Use size_t for variable list size and length
Date: Fri, 30 Nov 2012 20:47:48 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

On 11/29/12 5:07 AM, Roman Rakus wrote:
> see 
> https://www.securecoding.cert.org/confluence/display/seccode/INT32-C.+Ensure+that+operations+on+signed+integers+do+not+result+in+overflow

I've actually read this.

I'm skeptical that this change has any practical effect at all.  I'd like
to see a case where the use of ints in this struct causes overflow, even
on a 32-bit machine.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]