DragonFly BSD
DragonFly commits List (threaded) for 2005-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/usr.bin/checknr checknr.c

From: Chris Pressey <cpressey@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Mar 2005 23:20:44 -0800 (PST)

cpressey    2005/03/01 23:20:44 PST

DragonFly src repository

  Modified files:
    usr.bin/checknr      checknr.c 
  Improve data validation:
  - Simplify the check for a well-formed -a argument.
  - Move the check for overflowing the command table from addcmd()
    (which is just a driver) into addmac() (which does the real work,
    and which is called from places besides addcmd().)
  - Add a check for overflowing the macro-pair table.
  - In each case, use a clearer (while) loop for detecting overflow.
  - In each case, error out by using errx().
  Revision  Changes    Path
  1.10      +15 -9     src/usr.bin/checknr/checknr.c


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