History log of /src/games/hack/hack.o_init.c |
Revision | | Date | Author | Comments |
1.15 |
| 30-Jul-2023 |
pho | 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.
|
1.14 |
| 06-Aug-2011 |
dholland | Fix up still more casts; use NULL instead of (char *)0.
|
1.13 |
| 06-Aug-2011 |
dholland | Remove *another* set of useless casts. sheesh
|
1.12 |
| 06-Aug-2011 |
dholland | 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.)
|
1.11 |
| 06-Aug-2011 |
dholland | Remove silly casts.
|
1.10 |
| 12-Aug-2009 |
dholland | sprinkle static
|
1.9 |
| 07-Jun-2009 |
dholland | ANSIfy function declarations. All object file diffs inspected.
|
1.8 |
| 18-Jan-2009 |
lukem | fix -Wsign-compare issues
|
1.7 |
| 02-Apr-2003 |
jsm | 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.
|
1.6 |
| 25-Mar-2001 |
jsm | 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.
|
1.5 |
| 19-Oct-1997 |
christos | WARNsify...
|
1.4 |
| 24-Apr-1995 |
cgd | 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.
|
1.3 |
| 23-Mar-1995 |
cgd | merge with Lite, new RCS id conventions, etc.
|
1.2 |
| 02-Aug-1993 |
mycroft | alloc.c
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|