hstr
hstr copied to clipboard
Crash (sigabort) on exit / zsh history parsing
When using hstr with zsh , if you have any entry with more than 15 characters and starting with a colon then hstr will crash on exit.
# echo ': 1579881941:0;:234567890123456' >> ~/.zhistory
# hstr
free(): invalid pointer
zsh: abort (core dumped) hstr
(Archlinux x86_64 ; zsh 5.7.1-1 ; hstr 2.2-1 )
This might be related to issue https://github.com/dvorka/hstr/issues/353
Great catch! (probably false positive for entry w/ timestamp).
Fixed by #410