hstr
hstr copied to clipboard
Crash on PageUp + Down or PageDown + Down with short history
Prerequisites:
Your history file has to be short, so that when you invoke hstr
, there should be at least two empty lines on the top.
Steps to reproduce:
- Run
hstr
. - Press PageUp or PageDown. The topmost line will get highlighted.
- Press Down.
-
Segmentation fault (core dumped)
.
Workaround:
As soon as your history becomes long enough, so there is just one empty line on the top or no empty lines at all, the segfault won't occur anymore.