diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-11-15 10:40:28 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-11-15 10:40:28 +0000 |
commit | a088e0263c48ba406a7ae0932a1ae64a25be7acd (patch) | |
tree | 9d926edaa6c5ac87c88284f608f3b5a279efd03b | |
parent | Update ChangeLog (diff) | |
download | w3m-a088e0263c48ba406a7ae0932a1ae64a25be7acd.tar.gz w3m-a088e0263c48ba406a7ae0932a1ae64a25be7acd.zip |
Prevent deref null pointer in shiftAnchorPosition()
Bug-Debian: https://github.com/tats/w3m/issues/40
Diffstat (limited to '')
-rw-r--r-- | anchor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -551,7 +551,7 @@ shiftAnchorPosition(AnchorList *al, HmarkerList *hl, int line, int pos, break; if (a->start.pos > pos) { a->start.pos += shift; - if (hl->marks[a->hseq].line == line) + if (hl && hl->marks && hl->marks[a->hseq].line == line) hl->marks[a->hseq].pos = a->start.pos; } if (a->end.pos >= pos) |