]> granicus.if.org Git - curl/commit
HTTP: memory leak on multiple Location:
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jan 2011 11:06:50 +0000 (12:06 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jan 2011 11:06:50 +0000 (12:06 +0100)
commitdbcaa0065719acc0383307f13d02d3d0c9b5c635
treeba5429e85c29deb20b592350552744d3a8631963
parent4b837a7e1541c151f6ea16fde92b6f57c5827d8a
HTTP: memory leak on multiple Location:

The HTTP parser allocated memory on each received Location: header
without properly freeing old data. Starting now, the code only considers
the first Location: header and will blissfully ignore subsequent ones.

Bug: http://curl.haxx.se/bug/view.cgi?id=3165129
Reported by: Martin Lemke
lib/http.c
tests/data/test580 [new file with mode: 0644]
tests/libtest/lib507.c