Re: [Libevent-users] [PATCH] Force strict validation of HTTP version in response

2012-01-20 Thread Nick Mathewson
On Mon, Jan 16, 2012 at 5:51 PM, Catalin Patulea wrote: > Hi, > > I ran into this while evhttp was trying to fetch Shoutcast streams. > The server responds with 'ICY 200 OK', which libevent intends to > reject. But the sscanf return value isn't checked properly and the > behaviour is undefined (in

[Libevent-users] [PATCH] Force strict validation of HTTP version in response

2012-01-16 Thread Catalin Patulea
Hi, I ran into this while evhttp was trying to fetch Shoutcast streams. The server responds with 'ICY 200 OK', which libevent intends to reject. But the sscanf return value isn't checked properly and the behaviour is undefined (in practice, sometimes accepts the response, sometimes rejects it). F