Prevent segfault for formUpdateBuffer
Bug-Debian: https://github.com/tats/w3m/issues/9 Bug-Debian: https://github.com/tats/w3m/issues/10
This commit is contained in:
2
form.c
2
form.c
@@ -477,6 +477,8 @@ formUpdateBuffer(Anchor *a, Buffer *buf, FormItemList *form)
|
||||
spos = a->start.pos;
|
||||
epos = a->end.pos;
|
||||
}
|
||||
if (a->start.line != a->end.line || spos > epos)
|
||||
epos = spos;
|
||||
pos = form_update_line(l, &p, spos, epos, COLPOS(l, epos) - col,
|
||||
rows > 1,
|
||||
form->type == FORM_INPUT_PASSWORD);
|
||||
|
Reference in New Issue
Block a user