Revision: 9497 http://opensips.svn.sourceforge.net/opensips/?rev=9497&view=rev Author: bogdan_iancu Date: 2012-12-11 18:33:35 +0000 (Tue, 11 Dec 2012) Log Message: ----------- - re-work of parse_hname2() (function that parses the name of headers) for fixing: - do not accept spaces in the the name of the headers (not RFC compliant) - do not include trailing spaces (between name and : separator) in the name (this affects detection of non-statdart headers - like "Foo" versus "Foo " - buffer overflow when you have a non-standard header that are a prefix of a standard hdr (like "Content-L" versus "Content-Length") - this may leas to scaning entire memory space of the processs and even overflowing it. - small various optimization in looking for the end of header name (like "From" versus "fromfoo")
Closes bug #3582533 Modified Paths: -------------- trunk/parser/case_acce.h trunk/parser/case_allo.h trunk/parser/case_auth.h trunk/parser/case_call.h trunk/parser/case_cont.h trunk/parser/case_cseq.h trunk/parser/case_dive.h trunk/parser/case_even.h trunk/parser/case_expi.h trunk/parser/case_from.h trunk/parser/case_max.h trunk/parser/case_min_.h trunk/parser/case_orga.h trunk/parser/case_p_as.h trunk/parser/case_p_pr.h trunk/parser/case_path.h trunk/parser/case_prio.h trunk/parser/case_priv.h trunk/parser/case_prox.h trunk/parser/case_reco.h trunk/parser/case_refe.h trunk/parser/case_remo.h trunk/parser/case_retr.h trunk/parser/case_rout.h trunk/parser/case_sess.h trunk/parser/case_subj.h trunk/parser/case_supp.h trunk/parser/case_unsu.h trunk/parser/case_user.h trunk/parser/case_via.h trunk/parser/case_www.h trunk/parser/parse_hname2.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel