OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Maciej W. Rozycki (macroDS2.PG.GDA.PL)
Date: Mon Apr 09 2001 - 06:54:46 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    On Fri, 6 Apr 2001, Erik Fichtner wrote:

    > + /* avoid buffer overflow */
    > + if (tp > buf + sizeof(buf)) return(0);
    > + }

     There is an off-by-one error here. The above conditional should read as
    follows:

    if (tp >= buf + sizeof(buf)) return(0);

    --
    +  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
    +--------------------------------------------------------------+
    +        e-mail: macrods2.pg.gda.pl, PGP key available        +