httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryujiro Shibuya" <rshibuya0...@gmail.com>
Subject RE: Age calculation in mod_cache.
Date Thu, 15 Apr 2010 10:29:28 GMT
Hello Rüdiger,

Thank you for quick response and quick fix!

Regards,
Shibuya

-----Original Message-----
From: "Plüm, Rüdiger, VF-Group" [mailto:ruediger.pluem@vodafone.com] 
Sent: Wednesday, April 14, 2010 5:58 PM
To: dev@httpd.apache.org
Subject: RE: Age calculation in mod_cache.

 

> -----Original Message-----
> From: Ryujiro Shibuya 
> Sent: Mittwoch, 14. April 2010 03:35
> To: dev@httpd.apache.org
> Subject: Age calculation in mod_cache.
> 
> Hello,
> 
> A minor issue in the age calculation in mod_cache 
> [ap_cache_current_age() in
> cache_util.c] is found.
> 
> In some unusual conditions, the age of cached content can be 
> calculated as
> negative value.
> The negative age value will be casted into a huge unsigned 
> integer later,
> and then the inappropriate Age header e.g. "Age: 4294963617" 
> (= more than
> 135 years) may be returned to the client.
> 
> In my opinion, the negative age should be adjusted to zero, at least.
> What are your thoughts?

Makes sense. Fixed in trunk as r933886.

Regards

Rüdiger


Mime
View raw message