summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string/string.cpp
diff options
context:
space:
mode:
authorbabenko <[email protected]>2026-04-20 14:43:09 +0300
committerbabenko <[email protected]>2026-04-20 22:16:45 +0300
commit4deaa27af787f18db7d2613524c7b8f9450ce35f (patch)
tree83e8ae65220278f7900b5fb05cec80e8156ebd8c /library/cpp/yt/string/string.cpp
parent4f0b2d945c97970cfa75d1848cd0396987e3077a (diff)
Fix AccountMemory using sizeof(key.size()) instead of key.size() in OnKeyedItem
`sizeof(key.size())` evaluates to the size of `size_t` (8 bytes on 64-bit), not the length of the key string. Every map key was therefore charged a flat 8 bytes regardless of its actual length, causing memory tracking to be wrong for keys shorter or longer than 8 bytes. commit_hash:d482289ed15bf1c33ef431aa47565b26c96403e3
Diffstat (limited to 'library/cpp/yt/string/string.cpp')
0 files changed, 0 insertions, 0 deletions