diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-11-06 15:35:42 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-11-06 15:35:42 +0000 |
commit | c6c39973e7d336854e9a2d43119d1220b36e2035 (patch) | |
tree | 5140b4ca259d13e77cde536ce3270d842525c3b4 | |
parent | Update ChangeLog (diff) | |
download | w3m-c6c39973e7d336854e9a2d43119d1220b36e2035.tar.gz w3m-c6c39973e7d336854e9a2d43119d1220b36e2035.zip |
Prevent null pointer dereference in HTMLlineproc2body
Bug-Debian: https://github.com/tats/w3m/issues/32
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6056,7 +6056,7 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) n_select = -1; break; case HTML_N_SELECT_INT: - if (n_select >= 0) { + if (a_select && n_select >= 0) { FormItemList *item = (FormItemList *)a_select[n_select]->url; item->select_option = select_option[n_select].first; |