hstr icon indicating copy to clipboard operation
hstr copied to clipboard

Crash (sigabort) on exit / zsh history parsing

Open thepaka opened this issue 5 years ago • 1 comments

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

thepaka avatar Jan 24 '20 16:01 thepaka

Great catch! (probably false positive for entry w/ timestamp).

dvorka avatar Jan 24 '20 22:01 dvorka

Fixed by #410

thepaka avatar Dec 10 '22 11:12 thepaka