mirror of
https://github.com/apple/swift-homomorphic-encryption.git
synced 2026-01-11 05:07:57 -05:00
CuckooTable insertLoop stack overflow #47
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @karulont on 3/19/2025
We have a recursive algorithm for cuckoo table insert.
We do limit the recursion with
maxEvictionCountvalue in the config. However, it turns out that there was an oversight. After recursively calling "expand" we reset the eviction count. This means that instead of doing onlymaxEvictionCountrecursive calls, we are doingmaxEvictionCount * number_of_expansionsrecursive calls.We need to rewrite the
insertLoopalgorithm so that we have a proper upper bound on the recursion.Acknowledgement goes to @fpseverino who brought this to our attention in #174