Skip to content

Add length checks in init_dungeon_dungeons#1575

Open
0x0b1ade wants to merge 1 commit into
NetHack:NetHack-5.0from
0x0b1ade:fix/overflow-checks
Open

Add length checks in init_dungeon_dungeons#1575
0x0b1ade wants to merge 1 commit into
NetHack:NetHack-5.0from
0x0b1ade:fix/overflow-checks

Conversation

@0x0b1ade

@0x0b1ade 0x0b1ade commented Jun 7, 2026

Copy link
Copy Markdown

Fix a possible buffer overflow issue in
init_dungeon_dungeons (dungeon.c) by adding length checks. If the
buffer is too short, it will panic directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant