GNOME Bugzilla – Bug 666316
\000, \r in various malformed headers causes critical warning
Last modified: 2011-12-21 17:01:14 UTC
Created attachment 203602 [details] [review] Avoid assertion failures parsing malformed headers, and test more cases Attacking Rygel with a HTTP fuzzer revealed that \000 or \r in various places could cause a critical warning, although this apparently did not actually break anything. I've tried to follow the same policies as the rest of libsoup regarding whether to return 400 Bad Request or just ignore the header, but this is fairly arbitrary...
(I probably won't be around to apply this patch if it's reviewed over Christmas, so please don't wait for me.)
While looking at the code, I noticed some other pre-existing problems, and decided I wanted to handle stray CRs differently than you had, so I ended up committing my own patch (though keeping most of your tests). Thanks for the patch anyway though.