NetBSD/games/hack
pho 9904cea545 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.
2023-07-30 09:23:21 +00:00
..
COPYRIGHT
COPYRIGHT-JF
Makefile bsd.own.mk: rename GCC_NO_* to CC_WNO_* 2023-06-03 09:09:01 +00:00
Makequest
OWNER
Original_READ_ME
READ_ME
alloc.c Use the right type for the malloc wrapper function, and don't cast the 2011-08-06 20:18:26 +00:00
config.h games: remove trailing whitespace in *.c and *.h 2021-05-02 12:50:43 +00:00
data
date.h
def.edog.h
def.eshk.h
def.flag.h
def.func_tab.h
def.gen.h Use the right type for the malloc wrapper function, and don't cast the 2011-08-06 20:18:26 +00:00
def.gold.h Use the right type for the malloc wrapper function, and don't cast the 2011-08-06 20:18:26 +00:00
def.mkroom.h
def.monst.h - document non-literal format strings 2011-08-16 09:26:22 +00:00
def.obj.h Use the right type for the malloc wrapper function, and don't cast the 2011-08-06 20:18:26 +00:00
def.objclass.h Don't refer to index() in comments; use strchr(). 2011-08-06 19:23:38 +00:00
def.objects.h
def.permonst.h
def.rm.h
def.trap.h Use the right type for the malloc wrapper function, and don't cast the 2011-08-06 20:18:26 +00:00
def.wseg.h Use the right type for the malloc wrapper function, and don't cast the 2011-08-06 20:18:26 +00:00
extern.h games: remove trailing whitespace in *.c and *.h 2021-05-02 12:50:43 +00:00
hack.6
hack.Decl.c
hack.apply.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.bones.c Include system headers before private headers. Avoids various possible 2011-07-20 07:04:30 +00:00
hack.c games: remove trailing whitespace in *.c and *.h 2021-05-02 12:50:43 +00:00
hack.cmd.c Fix up still more casts; use NULL instead of (char *)0. 2011-08-06 20:42:43 +00:00
hack.do.c Remove more silly casts. 2011-08-06 20:29:37 +00:00
hack.do_name.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.do_wear.c
hack.dog.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.eat.c - done() can return in wizard mode. don't NOTREACHED'd it 2019-02-04 03:33:15 +00:00
hack.end.c games/hack: Revert the strlcpy(1) change since this changes expected behavior from strncpy(3). 2020-02-07 22:04:02 +00:00
hack.engrave.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.fight.c
hack.fix
hack.h Use the right type for the malloc wrapper function, and don't cast the 2011-08-06 20:18:26 +00:00
hack.invent.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.ioctl.c Fix up still more casts; use NULL instead of (char *)0. 2011-08-06 20:42:43 +00:00
hack.lev.c Remove *another* set of useless casts. sheesh 2011-08-06 20:32:25 +00:00
hack.main.c Fix up still more casts; use NULL instead of (char *)0. 2011-08-06 20:42:43 +00:00
hack.makemon.c
hack.mfndpos.h
hack.mhitu.c
hack.mklev.c Fix up still more casts; use NULL instead of (char *)0. 2011-08-06 20:42:43 +00:00
hack.mkmaze.c
hack.mkobj.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.mkshop.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.mon.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.monst.c - document non-literal format strings 2011-08-16 09:26:22 +00:00
hack.o_init.c hack(6): Fix a segfault that occurs when ASLR is enabled 2023-07-30 09:23:21 +00:00
hack.objnam.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.options.c
hack.pager.c reinstate NULL cast by request, where the NULL was being passed as a vararg 2011-09-01 07:18:50 +00:00
hack.potion.c
hack.pri.c
hack.read.c Remove more silly casts. 2011-08-06 20:29:37 +00:00
hack.rip.c
hack.rumors.c Use the right type for the malloc wrapper function, and don't cast the 2011-08-06 20:18:26 +00:00
hack.save.c Fix up still more casts; use NULL instead of (char *)0. 2011-08-06 20:42:43 +00:00
hack.search.c
hack.sh
hack.shk.c WARNS=5, and make WARNS=5 the default for src/games. 2012-06-19 05:46:08 +00:00
hack.shknam.c WARNS=5, and make WARNS=5 the default for src/games. 2012-06-19 05:46:08 +00:00
hack.steal.c Remove more silly casts. 2011-08-06 20:29:37 +00:00
hack.terminfo.c games: remove trailing whitespace in *.c and *.h 2021-05-02 12:50:43 +00:00
hack.timeout.c
hack.topl.c Remove more silly casts. 2011-08-06 20:29:37 +00:00
hack.track.c
hack.trap.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.tty.c Fix up still more casts; use NULL instead of (char *)0. 2011-08-06 20:42:43 +00:00
hack.u_init.c Remove the PYRAMID_BUG code. I don't think Pyramids are coming back, nor 2011-08-06 19:32:58 +00:00
hack.unix.c - enlarge buffer to avoid snprintf() truncation 2019-02-03 10:48:46 +00:00
hack.vault.c - document non-literal format strings 2011-08-16 09:26:22 +00:00
hack.version.c
hack.wield.c rename a variable from "time" to "stime" (it's a string) 2011-07-02 02:09:08 +00:00
hack.wizard.c Fix up some lint. 2011-08-07 06:03:45 +00:00
hack.worm.c Remove more silly casts. 2011-08-06 20:29:37 +00:00
hack.worn.c
hack.zap.c games: remove trailing whitespace in *.c and *.h 2021-05-02 12:50:43 +00:00
help
hh
makedefs.c
pathnames.h
rnd.c
rumors 1) "It's its" 2014-10-18 06:40:18 +00:00