Re: parsing quoted-string HTTP header fields

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Thu, 26 May 2011 14:38:04 -0600

On 05/26/2011 10:23 AM, Tsantilas Christos wrote:
>> Can the above double increment lead to *pos pointing beyond the string
>> boundaries?
>
> Yes it can, but we do not care because we do not modifying anything

but we are _reading_ those values. I guess there is an undocumented
assumption that the string actually exists beyond the start+len boundary
and whatever characters happen to live after the official end will not
match any of the special characters we worry about.

Alex.
Received on Thu May 26 2011 - 20:38:40 MDT

This archive was generated by hypermail 2.2.0 : Fri May 27 2011 - 12:00:05 MDT