#
9904cea5 |
| 30-Jul-2023 |
pho <pho@NetBSD.org> |
hack(6): Fix a segfault that occurs when ASLR is enabled
Prior to this change, savenames() would store "objects" in save files as a blob, and restnames() would load it and overwrite "objects". But s
hack(6): Fix a segfault that occurs when ASLR is enabled
Prior to this change, savenames() would store "objects" in save files as a blob, and restnames() would load it and overwrite "objects". But since objclass::oc_name and oc_descr are pointers to string constants, they would be invalid when the next time the process is spawned, and opening the inventory would crash by dereferencing invalid pointers.
show more ...
|
#
2c0ecb1a |
| 06-Aug-2011 |
dholland <dholland@NetBSD.org> |
Fix up still more casts; use NULL instead of (char *)0.
|
#
8041af98 |
| 06-Aug-2011 |
dholland <dholland@NetBSD.org> |
Remove *another* set of useless casts. sheesh
|
#
434d266e |
| 06-Aug-2011 |
dholland <dholland@NetBSD.org> |
Use the right type for the malloc wrapper function, and don't cast the return value.
(XXX: Except for a pile of allocation macros that produce typed pointer results; there the typechecking of the re
Use the right type for the malloc wrapper function, and don't cast the return value.
(XXX: Except for a pile of allocation macros that produce typed pointer results; there the typechecking of the result assignment is more valuable than the warning if the alloc function isn't declared properly. These macros should go away.)
show more ...
|
#
25ec2965 |
| 06-Aug-2011 |
dholland <dholland@NetBSD.org> |
Remove silly casts.
|
#
9b92b189 |
| 12-Aug-2009 |
dholland <dholland@NetBSD.org> |
sprinkle static
|
#
1fa8a9a6 |
| 07-Jun-2009 |
dholland <dholland@NetBSD.org> |
ANSIfy function declarations. All object file diffs inspected.
|
#
c6144e48 |
| 18-Jan-2009 |
lukem <lukem@NetBSD.org> |
fix -Wsign-compare issues
|
#
1c7f94e5 |
| 02-Apr-2003 |
jsm <jsm@NetBSD.org> |
Hack is now BSD-licensed. Thanks to Andries Brouwer, Jay Fenlason and CWI <http://www.cwi.nl/~aeb/games/hack/hack.html>. Via OpenBSD. Addresses part of PR bin/5850.
|
#
ab8b6343 |
| 25-Mar-2001 |
jsm <jsm@NetBSD.org> |
Make mostly gcc -W clean, and other cleanup: Use const. Add __noreturn__ attributes. Add a __format__ attribute. Add __unused__ attributes. Use symbolic constants for open() and lseek(). Declare type
Make mostly gcc -W clean, and other cleanup: Use const. Add __noreturn__ attributes. Add a __format__ attribute. Add __unused__ attributes. Use symbolic constants for open() and lseek(). Declare types of all function parameters; convert some function definitions to ISO C form. Ensure standard file descriptors are open on startup. Check for errors writing output of makedefs. Avoid duplicate definitions of variables.
show more ...
|
#
3ea4a95c |
| 19-Oct-1997 |
christos <christos@NetBSD.org> |
WARNsify...
|
#
c4816c32 |
| 24-Apr-1995 |
cgd <cgd@NetBSD.org> |
Various changes to make games compile w/o warnings on the alpha: Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
|
#
42fb1b9d |
| 23-Mar-1995 |
cgd <cgd@NetBSD.org> |
merge with Lite, new RCS id conventions, etc.
|
#
02ded532 |
| 02-Aug-1993 |
mycroft <mycroft@NetBSD.org> |
alloc.c
|
#
61f28255 |
| 21-Mar-1993 |
cgd <cgd@NetBSD.org> |
initial import of 386bsd-0.1 sources
|