Bug: no is crashing.
n
no rub
causes segfault.
==5859==ERROR: AddressSanitizer: global-buffer-overflow on address 0x0000005bb4b0 at pc 0x000000499b12 bp 0x7fffffffd0b0 sp 0x7fffffffd0a8
READ of size 8 at 0x0000005bb4b0 thread T0
#0 0x499b11 (/usr/home/nho/workshop/open-adventure/advent+0x499b11)
#1 0x48ad7c (/usr/home/nho/workshop/open-adventure/advent+0x48ad7c)
#2 0x40d99e (/usr/home/nho/workshop/open-adventure/advent+0x40d99e)
#3 0x800801fff (<unknown module>)
0x0000005bb4b0 is located 16 bytes to the right of global variable 'specials' defined in 'dungeon.c:4415:17' (0x5bb320) of size 384
SUMMARY: AddressSanitizer: global-buffer-overflow (/usr/home/nho/workshop/open-adventure/advent+0x499b11)
Shadow bytes around the buggy address:
0x4000000b7640: f9 f9 f9 f9 06 f9 f9 f9 f9 f9 f9 f9 00 00 00 00
0x4000000b7650: 00 00 00 00 00 00 00 00 00 00 00 00 01 f9 f9 f9
0x4000000b7660: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
0x4000000b7670: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x4000000b7680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x4000000b7690: 00 00 00 00 f9 f9[f9]f9 f9 f9 f9 f9 f9 f9 f9 f9
0x4000000b76a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x4000000b76b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x4000000b76c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x4000000b76d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x4000000b76e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==5859==ABORTING