[squid-dev] [PATCH Bug 4534 and N-bit fixes for CacheDigest

Eliezer Croitoru eliezer at ngtech.co.il
Sun Jul 10 14:17:53 UTC 2016


I have a question which now bumped me..
As I see it, could it be that nobody until now actually used so many cache_dirs or\and cache sizes?
And due to this we didn't encountered this issue?

Eliezer

----
Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer at ngtech.co.il


-----Original Message-----
From: squid-dev [mailto:squid-dev-bounces at lists.squid-cache.org] On Behalf Of Amos Jeffries
Sent: Saturday, July 9, 2016 4:37 PM
To: Squid Developers
Subject: [squid-dev] [PATCH Bug 4534 and N-bit fixes for CacheDigest

This patch converts the CacheDigest members and method parameters to use
explicitly sized data types more appropriate for what details they hold.

* 64-bit Digest capacity (entry count)
* 32-bit Mask Size (byte count)
*  8-bit Bit count per entry

Due to various store_digest.cc code still relying on masks not exceeding
2^31-1 worth of memory space we have to still assert that bitCount
calculation does not exceed that value.

Amos




More information about the squid-dev mailing list