aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-10-07 21:39:47 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-10-07 21:39:47 +0000
commitec9eb22e008a69ea9dc21fdca4b9b836679965ee (patch)
tree06cba54771489e775634a68b2029341fd257b695
parentUpdate ChangeLog (diff)
downloadw3m-ec9eb22e008a69ea9dc21fdca4b9b836679965ee.tar.gz
w3m-ec9eb22e008a69ea9dc21fdca4b9b836679965ee.zip
Fix null pointer dereference in formUpdateBuffer
Bug-Debian: https://github.com/tats/w3m/issues/28
Diffstat (limited to '')
-rw-r--r--form.c2
1 files changed, 2 insertions, 0 deletions
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)