Skip to content

Fixed crash in convert-links code introduced with html css parsing.

Created by: MichaelHeerklotz

  • include/wget/wget.h: Removed unused variable.
  • libwget/html_url.c: Updated code to always return pointer inside "html" variable.
  • test/test-k.c: Updated test to cover the bug.

Sorry, my HTML CSS patch introduced a crash bug, because the URL pointer is converted back to a offset inside the html variable when the "-k" option is used. This patch should take care of this problem. I also updated the test to cover this issue.

Merge request reports