--- - branch: MAIN date: Sun Jul 30 09:23:22 UTC 2023 files: - new: '1.15' old: '1.14' path: src/games/hack/hack.o_init.c pathrev: src/games/hack/hack.o_init.c@1.15 type: modified id: 20230730T092322Z.5a9897d894ff6a18506965d3a1927e742fe8e1ac log: | 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. module: src subject: 'CVS commit: src/games/hack' unixtime: '1690709002' user: pho