Boost logo

Boost-Build :

From: goodmen (goodmenzy_at_[hidden])
Date: 2006-06-05 13:53:11


version: boost-jam-3.1.12
file: lists.c
function: void lol_add( )

the lol was defined as a fix size array

so ,I think it must to write like this to avoid buffer overrun.
void lol_add(
LOL *lol,
LIST *l )
{
if( lol->count < LOL_MAX-1/*Note here!!*/ )
lol->list[ lol->count++ ] = l;
}

Are there anyone agree with me ?


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk