lexborisov / myhtml

Fast C/C++ HTML 5 Parser. Using threads.
GNU Lesser General Public License v2.1
1.66k stars 147 forks source link

fix segfault myhtml_tag_get_by_id #144

Closed Azq2 closed 6 years ago

Azq2 commented 6 years ago

If pass some big tag id value to myhtml_tag_get_by_id, then mcsimple_get_by_absolute_position access to uninitialized memory area. Now checks calculated list index by mcsimple->list_pos_length_used value to fix this.

lexborisov commented 6 years ago

Thanks!