[reSIProcate] Parser validation issues
Ofir Roval
Ofir.Roval at Kayote.com
Mon May 8 05:07:12 CDT 2006
Hi all,
I came across 2 parsing issues that I would like to share:
1. When parsing NameAddr fields, the parser will always accept a header
containing only a STAR sign (*) as valid value. This is of course the
required behavior for Contact header but for headers like From and To I
believe this violates the RFC syntax. Note: other syntax violations will
usually result with an exception.
2. When parsing an Interger field like Expires, an integer value greater
that MAX_INT will result in integer-overflow and the actual parsed int
may become a negative number.
These issues led me to raise the following question: to what extent is
the parser responsible for ensuring legal syntax ? what do you think ?
Ofir Roval - Kayote Networks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20060508/12e282ae/attachment.htm>
More information about the resiprocate-devel
mailing list