-
Committer:
Simon Tatham
-
Date:
2019-07-23 18:58:48 UTC
-
Revision ID:
git-v1:80f5a009f647aacd492c6e1e7a5f450156cabe13
Bounds-check terminal selection when clearing scrollback.
term_clrsb() was emptying the tree234 of scrollback, without checking
whether term->selstart, term->selend and term->selanchor were pointing
at places in the now-removed scrollback. If they were, then a
subsequent extend-selection operation could give rise to the dreaded
'line==NULL' assertion box.
Thanks to the user who sent in one of those debugging dumps, that
finally enabled us to track down (at least one case of) this
long- standing but extremely rare crash!