[TAG] Compliments to you all.

Jason Creighton androflux at softhome.net
Sun Jun 6 06:44:32 MSD 2004


On Fri, 4 Jun 2004 19:46:00 -0400, 
Ben Okopnik <ben at callahans.org> wrote:

> Tell you what - here, take a look at this code, and see if you can
> figure out what's wrong with it (note that input length _is_ being
> validated!):

Okay, I tried to figure it out without reading the other replies, and
then I tried to figure it out with reading the other replies. So what
we're saying here is that the "i <= SIZE" test will allow something like

buf[SIZE] = p1[SIZE]

to be executed when in reality we should have stopped at SIZE-1 due to
zero-based indexing?

Jason Creighton




More information about the TAG mailing list