CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.61k stars 4.17k forks source link

Segmentation fault in `Interface`/`Debug` options #57590

Closed GuardianDll closed 2 years ago

GuardianDll commented 2 years ago

Describe the bug

There is a segmentation fault in Interface and Debug option while using page down button

Steps to reproduce

Expected behavior

Not having the segmentation fault

Screenshots

image

Versions and configuration

Additional context

I dont really know is it my pc or is it a real bug page up works fine also its not related to the world, the bug can occur right from the main menu

NetSysFire commented 2 years ago

I dont really know is it my pc or is it a real bug

I can reproduce. This is a fun bug.

RoyBerube commented 2 years ago

https://github.com/CleverRaven/Cataclysm-DDA/blob/0e97f8b5308ffbdc1060e27c6163341e5bcdb9e5/src/options.cpp#L2893

Array out of bounds. Trying to get element 63 - iCurrentLine - of a size 56 array.