| Summary: | [bugfix] Port games/bsdgames trek has a boundary condition bug | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Kenji Rikitake <kenji> | ||||
| Component: | Individual Port(s) | Assignee: | Adam Weinberger <adamw> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Many People | Flags: | bugzilla:
maintainer-feedback?
(adamw) |
||||
| Priority: | --- | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Kenji Rikitake
2014-12-09 23:59:38 UTC
Auto-assigned to maintainer adamw@FreeBSD.org What is the bug? (In reply to Adam Weinberger from comment #2) > What is the bug? Without the change the program will accept out-of-range quadrant numbers. In trek.h, the values of the macros are defined as NQUADS = 8 and NSECTS = 10. A commit references this bug: Author: adamw Date: Fri Dec 12 15:15:35 UTC 2014 New revision: 374594 URL: https://svnweb.freebsd.org/changeset/ports/374594 Log: Fix a bounds-checking typo in trek. The number of sectors was being used to check input for the quadrant, and NSECTS > NQUADS. PR: 195837 Submitted by: Kenji Rikitake Changes: head/games/bsdgames/Makefile head/games/bsdgames/files/patch-trek_computer.c Committed. Thanks for your all work here, Kenji! |