From ec9eb22e008a69ea9dc21fdca4b9b836679965ee Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sat, 8 Oct 2016 06:39:47 +0900 Subject: Fix null pointer dereference in formUpdateBuffer Bug-Debian: https://github.com/tats/w3m/issues/28 --- form.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'form.c') diff --git a/form.c b/form.c index 20b7310..1e3aaad 100644 --- a/form.c +++ b/form.c @@ -459,6 +459,8 @@ formUpdateBuffer(Anchor *a, Buffer *buf, FormItemList *form) } else #endif /* MENU_SELECT */ + if (!form->value) + break; p = form->value->ptr; l = buf->currentLine; if (!l) -- cgit v1.2.3