diff --git a/ChangeLog b/ChangeLog index aa249b06..2f0f9655 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-05-31 Ángel González + + * convert.c: fix segfault on wrong urls (bug 36570) + 2012-05-13 Giuseppe Scrivano * bootstrap.conf (gnulib_modules): Add `git-version-gen'. diff --git a/src/convert.c b/src/convert.c index e1c58e9a..f5a9cba3 100644 --- a/src/convert.c +++ b/src/convert.c @@ -124,6 +124,9 @@ convert_links_in_hashtable (struct hash_table *downloaded_set, set_uri_encoding (pi, opt.locale, true); u = url_parse (cur_url->url->url, NULL, pi, true); + if (!u) + continue; + local_name = hash_table_get (dl_url_file_map, u->url); /* Decide on the conversion type. */