Skip to content

Instantly share code, notes, and snippets.

@VOID001 VOID001/progress.md
Created Jul 29, 2015

Embed
What would you like to do?
  • BUG Replay Successful
  • Locate bug on function convert_links_in_hashtable
  • When exec wget -k www.baidu.com (CRASH) The structure "downloaded_html_set" looks like this:
$16 = {
	hash_function = 0x40ddac <hash_string>,
	test_function = 0x40df70 <cmp_string>,
	cells = 0x20127c30,
	size = 13,
	count = 1,
	resize_threshold = 9,
	prime_offset = 1
}
  • When exec wget baidu.com (DO NOT CRASH)

The structure "downloaded_html_set" looks like this

$17 = {
	hash_function = 0x40ddac <hash_string>,
	test_function = 0x40df70 <cmp_string>,
	cells = 0x20044dc8,			//ONLY DIFFRENCE HERE
	size = 13,
	count = 1,
	resize_threshold = 9,
	prime_offset = 1
}

breakpoint at 1761 convert_all_links()

SegmentFault On convert__all_links()->convert_links_in_hashtable()->convert_links()->fwrite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.