Fix: Setting memory cache size greater than 2GB causes a segfault.
authorMuhammad Usama <muhammad.usama@percona.com>
Fri, 30 Sep 2022 20:33:12 +0000 (01:33 +0500)
committerMuhammad Usama <muhammad.usama@percona.com>
Fri, 30 Sep 2022 20:46:08 +0000 (01:46 +0500)
commite83f6f6ee36ea66249ce1928af68bd0682d41f40
tree5f2b35bca18e7f1c57178aef4c3d1965e1e7045e
parent3e752ed6655786677108782a0539c10a88705177
Fix: Setting memory cache size greater than 2GB causes a segfault.

The problem was in the block_address() function that returns the memory address
for a given cache block, It was using 32bit integers to calculate the offset of
the block within the shared memory space that is only good until the 2GB limit.
src/query_cache/pool_memqcache.c