Modify http_conn_parse_url to do more sanity checking. In particular,
commita96931e9442dd9543e23a08c31fda750af861450
authorKyle Hubert <khubert@lottle.net>
Thu, 25 Mar 2010 19:07:45 +0000 (25 12:07 -0700)
committerKyle Hubert <khubert@lottle.net>
Thu, 25 Mar 2010 19:07:45 +0000 (25 12:07 -0700)
tree98f9fa9ff5fe1f40b462b6cbc4af3548f09ca6e2
parentee4d1776863c1cd14cee9bac7c3ffdb7e5e3c54c
Modify http_conn_parse_url to do more sanity checking. In particular,
a URL was being parsed "/PageNotFound.htm", which eventually causes
host_port's g_strsplit to not have two elements in the returned
array. When the code did this:

if (port) *port = parts[1] ? atoi(parts[1]) : port_tmp;

parts[1] was uninitialized with an address out of range. This caused a
segfault.
src/core/http-conn.c