[Libevent-users] [patch] 1.3 revision strsep last i post have a mistake
I am pretty sorry that the last patch I posted is not correct. this one will sovlve it. 1.3 revision 454 strsep() function has a bug which will cause valid parse with evhttp_parse_request_line while do strcmp to method version and uri. --- http.c (revision 454) +++ http.c (working copy) @@ -147,9 +158,14 @@ tok = *s; d = strstr(tok, del); if (d) + { + *d = '\0';//terminate the string whith NULL. *s = d + strlen( del ); + } else + { *s = NULL; + } return tok; } #endif Chen shaowei - @yahoo.cn 新域名、无限量,快来抢注!___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users
Re: [Libevent-users] [patch] 1.3 revision strsep last i post have a mistake
On Sun, Sep 30, 2007 at 10:52:50AM +0800, [EMAIL PROTECTED] wrote: > > I am pretty sorry that the last patch I posted is not correct. > > this one will sovlve it. Thanks; I've checked in a version of this patch. yrs, -- Nick Mathewson pgpDRflAW0nYw.pgp Description: PGP signature ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users