From a59a35211c63f12951b6266646081b08488b10ea Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sun, 13 Nov 2016 17:30:55 +0900 Subject: Prevent null pointer dereference in HTMLlineproc2body for textarea_int Bug-Debian: https://github.com/tats/w3m/issues/32#issuecomment-260170163 --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index f5b160f..b84a51a 100644 --- a/file.c +++ b/file.c @@ -6044,7 +6044,7 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) n_textarea = -1; break; case HTML_N_TEXTAREA_INT: - if (n_textarea >= 0) { + if (a_textarea && n_textarea >= 0) { FormItemList *item = (FormItemList *)a_textarea[n_textarea]->url; item->init_value = item->value = -- cgit v1.2.3