]>
git.cameronkatri.com Git - bsdgames-darwin.git/log
hubertf [Sat, 24 Jun 2006 13:32:45 +0000 (13:32 +0000)]
Attribute ``A language that doesn't affect the way you think about
programming is not worth knowing.'' to Alan Perlis, per Diomidis Spinellis'
blog at http://www.spinellis.gr/blog/
20060424 /
reed [Sat, 17 Jun 2006 04:58:14 +0000 (04:58 +0000)]
Fix typo or mispelling.
jnemeth [Wed, 7 Jun 2006 09:36:39 +0000 (09:36 +0000)]
Increase username length to match modern systems, and create #defines for a
couple of lengths.
jnemeth [Wed, 7 Jun 2006 09:35:03 +0000 (09:35 +0000)]
Actually accept "?" argument as documented in the manpage.
Don't attempt to ignore an untrappable signal.
Fix 6 possible buffer overflows.
jnemeth [Wed, 7 Jun 2006 09:30:35 +0000 (09:30 +0000)]
Don't follow symlinks on systems that have O_NOFOLLOW.
Don't bother looping with lockf() since first iteration would return.
Prevent two buffer overflows.
jnemeth [Wed, 7 Jun 2006 09:24:26 +0000 (09:24 +0000)]
prevent "stack" overflow
jnemeth [Wed, 7 Jun 2006 09:22:52 +0000 (09:22 +0000)]
bracket else block
jnemeth [Wed, 7 Jun 2006 09:21:06 +0000 (09:21 +0000)]
WARNS=4
drochner [Thu, 1 Jun 2006 16:12:27 +0000 (16:12 +0000)]
Better check data read from tetris.scores before use as array indices etc.
This is CVE-2006-1539, files against Gentoo Linux, the patch is from
Gentoo.
A standard NetBSD installation is not as much risk because tetris is
sgid "games", and users shouldn't be in that group.
dan [Thu, 25 May 2006 07:11:54 +0000 (07:11 +0000)]
read config more strictly, from Maximillian Dornseif
mrg [Thu, 18 May 2006 18:42:59 +0000 (18:42 +0000)]
don't try to switch a char and have a case of EOF - use an int.
christos [Wed, 17 May 2006 14:47:58 +0000 (14:47 +0000)]
Remove dup Hitler fortune. One of the two fortunes I moved yesterday, was
already in the offensive set. From a NetBSD fan who prefers to be anonymous.
christos [Tue, 16 May 2006 20:13:50 +0000 (20:13 +0000)]
PR/33495: Daniel Weiss: Offensive quote in netbsd fortune package
- Move 2 offensive to women Adolf Hitler quotes to fortune2-o
- s/Adolph/Adolf/
christos [Sun, 14 May 2006 06:38:04 +0000 (06:38 +0000)]
Add a virtual destructor to avoid "future ABI issues". I love c++.
christos [Sun, 14 May 2006 03:21:52 +0000 (03:21 +0000)]
add virtual destructors so that g++ shuts up.
christos [Sun, 14 May 2006 03:21:23 +0000 (03:21 +0000)]
Don't use iostream just for the usage message. Use stdio instead.
christos [Sun, 14 May 2006 03:15:50 +0000 (03:15 +0000)]
XXX: GCC uninitialized
christos [Sat, 13 May 2006 22:45:11 +0000 (22:45 +0000)]
Coverity CID 3382: Fix memory leak.
christos [Sat, 13 May 2006 22:43:02 +0000 (22:43 +0000)]
Coverity CID 3383: Fix memory leak.
christos [Sat, 13 May 2006 22:29:53 +0000 (22:29 +0000)]
Coverity CID 3508: Fix file leak.
christos [Sat, 13 May 2006 22:28:04 +0000 (22:28 +0000)]
Coverity CID 3269: Fix memory leak.
mrg [Thu, 11 May 2006 23:16:28 +0000 (23:16 +0000)]
sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
mrg [Thu, 11 May 2006 10:23:24 +0000 (10:23 +0000)]
lrint() -> larn_lrint().
mrg [Thu, 11 May 2006 00:22:52 +0000 (00:22 +0000)]
end the argument list to exec*(3) with a NULL instead of a bare '0', as
the latter isn't a pointer context in these varargs functions.
mrg [Thu, 11 May 2006 00:18:31 +0000 (00:18 +0000)]
UC, PC and BC are provided my libtermcap, don't duplicate them.
mrg [Thu, 11 May 2006 00:17:07 +0000 (00:17 +0000)]
avoid a pointer sign difference.
mrg [Tue, 9 May 2006 20:18:05 +0000 (20:18 +0000)]
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
groo [Wed, 26 Apr 2006 00:52:21 +0000 (00:52 +0000)]
Credit Alan Perlis for ``give him a lollipop'' programming language quote.
Hat tip: Jerry Leichter.
christos [Mon, 24 Apr 2006 20:08:54 +0000 (20:08 +0000)]
Coverity CID 3032: Prevent double free: Next to the call of page_more()
there is a comment saying /* does fclose */, but the next line calls
fclose(fp);. Go figure.
snj [Mon, 24 Apr 2006 19:00:29 +0000 (19:00 +0000)]
It's "its."
snj [Mon, 24 Apr 2006 18:00:53 +0000 (18:00 +0000)]
It's "its."
drochner [Thu, 20 Apr 2006 10:57:26 +0000 (10:57 +0000)]
fix buffer overflow (CVE-2006-1744), from Debian
groo [Thu, 6 Apr 2006 19:47:23 +0000 (19:47 +0000)]
Grammar nit. Never mind that it's still not true.
christos [Sun, 2 Apr 2006 00:13:29 +0000 (00:13 +0000)]
Coverity CID 2788: If no room gets returned, don't try to place a monster.
christos [Sun, 2 Apr 2006 00:08:12 +0000 (00:08 +0000)]
Coverity CID 2791: Fix file pointer leak.
jnemeth [Thu, 30 Mar 2006 05:04:22 +0000 (05:04 +0000)]
Coverity CID 2452: possible negative array index; CID 1518 and CID 1517: possible overrun of static array
jnemeth [Thu, 30 Mar 2006 04:41:15 +0000 (04:41 +0000)]
Coverity CID 1288: possible negative array index
jnemeth [Thu, 30 Mar 2006 04:27:24 +0000 (04:27 +0000)]
Coverity CID 993: dereference of NULL pointer
jnemeth [Thu, 30 Mar 2006 04:19:38 +0000 (04:19 +0000)]
Coverity CID 1293: not checking for an error return
jnemeth [Thu, 30 Mar 2006 04:10:04 +0000 (04:10 +0000)]
Coverity CID 1287: not checking for error return
jnemeth [Thu, 30 Mar 2006 01:32:27 +0000 (01:32 +0000)]
Coverity CID 1327: check for error return
jnemeth [Thu, 30 Mar 2006 01:31:13 +0000 (01:31 +0000)]
Bah! Compare, don't assign!
jnemeth [Thu, 30 Mar 2006 01:28:46 +0000 (01:28 +0000)]
Coverity CID 1328: check for error return
jnemeth [Thu, 30 Mar 2006 01:25:52 +0000 (01:25 +0000)]
Coverity CID 1326: check for error return
jnemeth [Wed, 29 Mar 2006 01:21:07 +0000 (01:21 +0000)]
Fix Coverity issue 891 -- FORWARD_NULL.
Approved by christos@.
jnemeth [Wed, 29 Mar 2006 01:19:51 +0000 (01:19 +0000)]
Fix Coverity issues 2366 and 2365 -- REVERSE_INULL.
Approved by Christos@.
jnemeth [Wed, 29 Mar 2006 01:18:39 +0000 (01:18 +0000)]
Fix Coverity issue 2584 -- USE_AFTER_FREE and issue 889 -- FORWARD_NULL.
Approved by christos@.
christos [Wed, 22 Mar 2006 15:24:52 +0000 (15:24 +0000)]
Add missing parens.
christos [Wed, 22 Mar 2006 05:03:10 +0000 (05:03 +0000)]
Simplify (Masao Uebayashi)
christos [Wed, 22 Mar 2006 04:24:14 +0000 (04:24 +0000)]
Coverity CID 692: Another && that should be ||. Boy...
christos [Wed, 22 Mar 2006 04:22:05 +0000 (04:22 +0000)]
Coverity CID 558: && should be obviously ||
christos [Tue, 21 Mar 2006 20:25:55 +0000 (20:25 +0000)]
Coverity CID 2735: Remove dead code.
christos [Tue, 21 Mar 2006 17:14:15 +0000 (17:14 +0000)]
Coverity CID 2737: Handle linked-lists properly. Use calloc instead of malloc
so that we don't end up storing garbage accidentally and the next pointer is
initialized. If there is an inconsistency in the file abort instead
of dereferencing NULL.
rtr [Mon, 20 Mar 2006 12:32:21 +0000 (12:32 +0000)]
remove duplicate #include <stdlib.h>
he [Sun, 19 Mar 2006 12:09:39 +0000 (12:09 +0000)]
Now that we use exit(2), we need to include <stdlib.h> for its definition.
christos [Sun, 19 Mar 2006 06:02:50 +0000 (06:02 +0000)]
include <stdlib.h> to get a prototype for exit
christos [Sun, 19 Mar 2006 01:00:35 +0000 (01:00 +0000)]
Coverity CID 1197: Don't pass -1 to close.
christos [Sun, 19 Mar 2006 00:56:12 +0000 (00:56 +0000)]
Coverity CID 1467: Elide static buffer overflow.
christos [Sun, 19 Mar 2006 00:50:28 +0000 (00:50 +0000)]
Coverity CID 868: Fix possible NULL deref (after INFTIM passes :-)
christos [Sun, 19 Mar 2006 00:41:46 +0000 (00:41 +0000)]
Coverity CID 980: Prevent an impossible NULL point deref.
christos [Sun, 19 Mar 2006 00:37:15 +0000 (00:37 +0000)]
Coverity CID 2073: Fix memory leak.
christos [Sun, 19 Mar 2006 00:32:18 +0000 (00:32 +0000)]
Coverity CID 999: Prevent NULL deref.
christos [Sun, 19 Mar 2006 00:29:27 +0000 (00:29 +0000)]
Coverity CID 695: Remove impossible condition. This changes the scoring as
it was probably intended originally.
christos [Sun, 19 Mar 2006 00:19:31 +0000 (00:19 +0000)]
Coverity CID 998: Possible NULL pointer deref. Actually this was a bug
where a house to be sold would be skipped. Change the sell loop to be like
the buy side loop.
christos [Sun, 19 Mar 2006 00:18:47 +0000 (00:18 +0000)]
fix typo
christos [Sun, 19 Mar 2006 00:05:05 +0000 (00:05 +0000)]
Coverity CID 1004: Fix NULL deref.
christos [Sun, 19 Mar 2006 00:03:18 +0000 (00:03 +0000)]
Coverity CID 1005: Fix NULL deref and incorrect variable use.
christos [Sun, 19 Mar 2006 00:00:19 +0000 (00:00 +0000)]
Coverity CID 1443: Prevent static overrun.
christos [Sat, 18 Mar 2006 23:54:17 +0000 (23:54 +0000)]
Coverity CID 827: Prevent NULL pointer deref.
christos [Sat, 18 Mar 2006 23:51:51 +0000 (23:51 +0000)]
Coverity CID 1699: Fix memory leaks.
christos [Sat, 18 Mar 2006 23:44:05 +0000 (23:44 +0000)]
Coverity CID 2544: Fix memory leak.
christos [Sat, 18 Mar 2006 23:38:12 +0000 (23:38 +0000)]
Coverity CID 1786: Close file.
christos [Sat, 18 Mar 2006 23:35:51 +0000 (23:35 +0000)]
Coverity CID 570: Remove impossible check.
christos [Sat, 18 Mar 2006 23:33:38 +0000 (23:33 +0000)]
Coverity CID 1195: Check for possible negative index.
christos [Sat, 18 Mar 2006 23:31:19 +0000 (23:31 +0000)]
Coverity CID 777: Fix NULL pointer deref and de-obfuscate code.
christos [Sat, 18 Mar 2006 23:25:30 +0000 (23:25 +0000)]
Coverity CID 1230: Remove spurious close().
christos [Sat, 18 Mar 2006 23:23:33 +0000 (23:23 +0000)]
Coverity CID 1294: Avoid negative variable used as index.
christos [Sat, 18 Mar 2006 23:14:45 +0000 (23:14 +0000)]
Coverity CID 1295: Don't allow cchose to return a negative number. It is
used as an index.
rtr [Sat, 18 Mar 2006 09:40:46 +0000 (09:40 +0000)]
fclose() open FILE * even though we are returning to fail anyway.
silences coverity, CID 1590 / run 5
rtr [Sat, 18 Mar 2006 05:16:46 +0000 (05:16 +0000)]
don't access out of bounds element of static alloc array.
found by Coverity, CID 1519 / Run 5
XXX possible that intention was to start with i = 0.
abs [Sat, 18 Mar 2006 01:43:52 +0000 (01:43 +0000)]
If none of the boarding parties are set do not fall off the end of the
list. Addresses Coverity CID 1507. Also put pointers before shorts in
a struct rather than mixing them up
abs [Fri, 17 Mar 2006 23:36:38 +0000 (23:36 +0000)]
add more "ifdef notdef" around unused sections - addresses Coverity CID 564
abs [Fri, 17 Mar 2006 23:34:37 +0000 (23:34 +0000)]
Add a missing bp->b_score not null check - addresses Coverity CID 1003
abs [Fri, 17 Mar 2006 23:22:59 +0000 (23:22 +0000)]
if getpwuid() returns null, print out the uid rather than dereferencing
Addresses Coverity CID 930
abs [Fri, 17 Mar 2006 23:15:02 +0000 (23:15 +0000)]
Fix overrun in players[] array. Addresses Coverty CID 1457
abs [Fri, 17 Mar 2006 23:11:47 +0000 (23:11 +0000)]
If getpwuid() returns null, its not usually a good idea to dereference
that to try to assign a default value. Just copy the default value into
the final destination.
Addresses Coverty CID 925
abs [Fri, 17 Mar 2006 23:04:01 +0000 (23:04 +0000)]
Call fclose() appropriately if there is a problem with the save file.
Coverty CID 2063
simonb [Sat, 25 Feb 2006 12:04:23 +0000 (12:04 +0000)]
Use MKPRIVATELIB instead of NOLINKLIB/NOMAN/NOPIC/NOLINT.
simonb [Sat, 25 Feb 2006 11:56:51 +0000 (11:56 +0000)]
Change DPADD from LIBTERM (which doesn't exist) and LIBCOMPAT (which it
doesn't use) to LIBTERMCAP (which it does use).
wiz [Sat, 25 Feb 2006 02:06:08 +0000 (02:06 +0000)]
Fix typo in the instructions.
wiz [Sat, 25 Feb 2006 01:40:22 +0000 (01:40 +0000)]
Remove duplicate and uncredited "Plan for the Improvement of English
Spelling", which is also in the file "fortunes".
jnemeth [Mon, 20 Feb 2006 03:00:27 +0000 (03:00 +0000)]
Correct The Hitchhiker's Guide to the Galaxy entry about dolphins as per
page 119 of the book.
elad [Tue, 24 Jan 2006 19:01:45 +0000 (19:01 +0000)]
moduli utils moved from games to usr.bin.
elad [Tue, 24 Jan 2006 18:51:20 +0000 (18:51 +0000)]
Remove qsiefe/qsafe from games. Will be put back in usr.bin.
wiz [Sun, 22 Jan 2006 21:22:30 +0000 (21:22 +0000)]
Bump date for previous.
wiz [Sun, 22 Jan 2006 00:32:54 +0000 (00:32 +0000)]
Drop trailing whitespace. Remove superfluous .br.
elad [Fri, 20 Jan 2006 21:40:08 +0000 (21:40 +0000)]
better handle ^d in getinp(), so we dont loop endlessly.
i have no idea why i wanted to play this game.
elad [Fri, 20 Jan 2006 14:19:31 +0000 (14:19 +0000)]
oops, make this install to /usr/games and not /...
noted by hannken@, thanks.
elad [Thu, 19 Jan 2006 23:25:19 +0000 (23:25 +0000)]
Descend to moduli too.
elad [Thu, 19 Jan 2006 23:23:58 +0000 (23:23 +0000)]
Add qsieve and qsafe, two programs used for generating the moduli file.
These were written by William Allen Simpson and submitted in PR 21983,
and are added with minor adjustments and nits from christos@ and myself.
Approved by christos@ and groo@.