You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2013/07/03 04:21:10 UTC
[Bug 55187] New: Integer overflow when computing ONE_YEAR_MS in HTTP
CacheManager
https://issues.apache.org/bugzilla/show_bug.cgi?id=55187
Bug ID: 55187
Summary: Integer overflow when computing ONE_YEAR_MS in HTTP
CacheManager
Product: JMeter
Version: 2.8
Hardware: PC
OS: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: sdmoore@fas.harvard.edu
The calculation "long ONE_YEAR_MS = 365*86400*1000;" overflows (and computes
the wrong value) because the constants are not marked as long. The result is
1,471,228,928 rather than 31,536,000,000.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 55187] Integer overflow when computing ONE_YEAR_MS in HTTP
CacheManager
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55187
Scott Moore <sd...@fas.harvard.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Hardware|PC |Macintosh
OS|Mac OS X 10.4 |Mac OS X 10.6
Severity|normal |minor
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 55187] Integer overflow when computing ONE_YEAR_MS in HTTP
CacheManager
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55187
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
OS| |All
--- Comment #1 from Sebb <se...@apache.org> ---
Thanks, good catch!
Luckily the exact number of seconds is not critical - the expiry time is
arbitrary. Fixed:
URL: http://svn.apache.org/r1499938
Log:
Integer overflow when computing ONE_YEAR_MS in HTTP CacheManager
Bugzilla Id: 55187
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
jmeter/trunk/xdocs/changes.xml
--
You are receiving this mail because:
You are the assignee for the bug.