nethack -s buffer overflow fix
When printing invalid player names in -s mode, it was possible to overflow the output buffer due to a missing buffer size check. On shared Unix-like systems with executable stacks, this could be used as a security exploit, eg to obtain a shell running as user or group games. While I was at it, removed a dead block of "#if 0" code
This commit is contained in:
@@ -379,6 +379,7 @@ see_monsters() wasn't called when you lost the innate warning intrinsic due
|
||||
xorns sink if the drawbridge they're standing on is raised
|
||||
applying figurines to an adjacent spot over water does drowning checks
|
||||
fix sequencing of Magicbane's hit messages
|
||||
avoid buffer overflow from long or too many -s params
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
Reference in New Issue
Block a user