diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-11-13 08:30:55 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-11-13 08:33:53 +0000 |
commit | a59a35211c63f12951b6266646081b08488b10ea (patch) | |
tree | cd85bdc02dc6648f48344d34db99faeb0a7141f1 /file.c | |
parent | Update ChangeLog (diff) | |
download | w3m-a59a35211c63f12951b6266646081b08488b10ea.tar.gz w3m-a59a35211c63f12951b6266646081b08488b10ea.zip |
Prevent null pointer dereference in HTMLlineproc2body for textarea_int
Bug-Debian: https://github.com/tats/w3m/issues/32#issuecomment-260170163
Diffstat (limited to '')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 = |