git: trek(6): Fix bounds checking.

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Dec 13 02:59:53 PST 2014


commit bbd894fbda2716b489013ee3faa1b8196e8a1308
Author: Sascha Wildner <saw at online.de>
Date:   Sat Dec 13 11:51:56 2014 +0100

    trek(6): Fix bounds checking.
    
    The number of sectors was being used to check input for the quadrant,
    and NSECTS > NQUADS.
    
    Taken-from:  FreeBSD ports (games/bsdgames)
    Reported-by: marino

Summary of changes:
 games/trek/computer.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bbd894fbda2716b489013ee3faa1b8196e8a1308


-- 
DragonFly BSD source repository


More information about the Commits mailing list