1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/games
tb b5c67e29cb More fixes from David Fifield:
First, fill a missing pixel in the glyph for 'U'.

Second, fix an off-by-one in the line output routine. This caused an
extra space character to be output at the end of every line. It might
have caused a buffer overflow if any glyph had used the entire possible
width of 132 pixels, but as it is the widest is only 124 pixels.

Third, output blank lines instead of lines full of spaces (the number of
spaces was equal to the width of the most recent non-blank line).

Finally, add bounds checks to protect against buffer overflows that could arise
in case the data table were ever modified to draw out of bounds (characters
wider or taller than 132 pixels, or a two-byte code where the second byte is
past the end of the table).

ok bcallah
2018-10-16 20:06:42 +00:00
..
adventure Remove unused confirm() and datime() functions. 2017-06-23 12:56:25 +00:00
arithmetic Callers of time(3) should #include <time.h>. 2016-09-11 14:21:17 +00:00
atc have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediate 2017-07-09 14:04:50 +00:00
backgammon User count checks have been compiled out since 1998, get rid of them. 2017-07-11 14:32:16 +00:00
banner More fixes from David Fifield: 2018-10-16 20:06:42 +00:00
battlestar slightly reduce the difficulty of the adventure game that is reading 2018-02-07 20:22:23 +00:00
bcd Fix table wrt missing element and `, detailed analysis and diff from 2018-01-23 07:06:55 +00:00
boggle If boardspec doesn't consist entirely of lower case letters, there will be 2016-09-12 20:11:10 +00:00
bs Remove a few too early pledge(2)s on games/ and apply them a little bit later 2018-08-24 11:14:49 +00:00
caesar convert source code frequencies to match those in the man page 2017-08-10 17:24:30 +00:00
canfield During our refactor with tedu@ tb@ and myself we moved the score file to the 2018-08-24 11:31:17 +00:00
cribbage - General changes: 2016-03-07 12:07:55 +00:00
factor In 32 bits sqrt(val) + 1 can overflow, so some big primes still 2016-09-01 10:48:38 +00:00
fish - General changes: 2016-03-07 12:07:55 +00:00
fortune Fix fortune underlines and use the right number of underscores in Notes. 2018-09-15 09:44:19 +00:00
gomoku ANSIfy gomoku(6) and change a char* to u_char* 2016-01-08 21:38:33 +00:00
grdc reduce pledge(2) to "stdio tty" after ncurses initialization. 2018-08-23 06:25:01 +00:00
hack Remove a few too early pledge(2)s on games/ and apply them a little bit later 2018-08-24 11:14:49 +00:00
hangman Use <elf.h> instead of <elf_abi.h> 2017-10-27 16:47:08 +00:00
hunt Remove the Installation section and fix a nonexistent path. 2017-06-15 20:10:25 +00:00
mille Callers of time(3) should #include <time.h>. 2016-09-11 14:21:17 +00:00
monop Correct number of players, the program enforces a range from 2 to 9. 2017-06-09 15:32:40 +00:00
morse - General changes: 2016-03-07 12:07:55 +00:00
number - General changes: 2016-03-07 12:07:55 +00:00
phantasia These games have been broken for the better part of a year, ever since 2016-09-09 15:32:28 +00:00
pig - General changes: 2016-03-07 12:07:55 +00:00
pom Consolidate printf(3) calls at the end of main(). 2017-12-24 22:12:49 +00:00
ppt - General changes: 2016-03-07 12:07:55 +00:00
primes Straightforward conversion to strtonum. Slight change of behavior in that 2017-11-02 10:37:11 +00:00
quiz Remove a few too early pledge(2)s on games/ and apply them a little bit later 2018-08-24 11:14:49 +00:00
rain Some basic code maintenance in games/ 2016-01-07 16:00:31 +00:00
random - General changes: 2016-03-07 12:07:55 +00:00
robots reduce pledge(2) to "stdio tty" after ncurses initialization. robots(6) uses a 2018-08-23 06:26:35 +00:00
sail Callers of time(3) should #include <time.h>. 2016-09-11 14:21:17 +00:00
snake Remove a few too early pledge(2)s on games/ and apply them a little bit later 2018-08-24 11:14:49 +00:00
tetris Use a NUMKEYS macro instead of magic and use a more familiar idiom 2018-04-25 17:41:23 +00:00
trek The game is playable without the need to access any files therefore we can 2018-08-09 17:51:22 +00:00
wargames destroy lint remnants. 2017-06-12 18:49:33 +00:00
worm Remove a few too early pledge(2)s on games/ and apply them a little bit later 2018-08-24 11:14:49 +00:00
worms Drop "rpath" from pledge(2) after ncurses initialization. 2018-08-06 06:27:32 +00:00
wump - General changes: 2016-03-07 12:07:55 +00:00
Makefile
Makefile.inc Build most of games/ with -Werror-implicit-function-declaration. 2015-12-28 20:55:55 +00:00