Bug: Wear location array is missing elements
Danger: High - Will crash if a missing element is used.
Found by: Phoneix Dracul
Fixed by: Phoneix Dracul
---
build.c
Locate:
char *const wear_locs[] = {
"light", "finger1", "finger2", "neck1", "neck2", "body", "head", "legs",
"feet", "hands", "arms", "shield", "about", "waist", "wrist1", "wrist2",
"wield", "hold", "dual_wield", "ears", "eyes", "missile_wield", "bothwrists"
};
Replace with:
char *const wear_locs [] = {
"light", "finger1", "finger2", "neck1", "neck2", "body", "head", "legs",
"feet", "hands", "arms", "shield", "about", "waist", "wrist1", "wrist2",
"wield", "hold", "dual_wield", "ears", "eyes", "missile_wield", "back",
"holster1", "holster2", "bothwrists"
};
Missing values were back, holster1, and holster2. Without them the "redit rlist" function will crash due to buffer overrun.