[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Kjell Wooding <kjell_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Wed, 3 May 2006 15:15:59 -0600 (MDT)
CVSROOT: /cvs
Module name: src
Changes by: kjell_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2006/05/03 15:15:59
Modified files:
usr.bin/mg : fileio.c
Log message:
len = strlen(foo); if foo[len - 1]... will do bad things if len == 0.
Avoid, and rearrange a test so it can't (hypothetically) overflow.
Visit your host, monkey.org