summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/interface/common.cpp
diff options
context:
space:
mode:
authorbabenko <[email protected]>2026-04-27 19:04:22 +0300
committerbabenko <[email protected]>2026-04-27 20:12:12 +0300
commit827fabc2ea582a9e7f61bc8c3ceea68df3ddfdee (patch)
tree34855008b6d67f050d24924ae2a93270fd28224f /yt/cpp/mapreduce/interface/common.cpp
parent3b522f5a56e4c07a50ecec00e730d61b8f5cb7f8 (diff)
Validate protobuf map key length before reading
ReadRaw takes an int, so a ui64 keyLength >= 2^31 would silently truncate, causing incorrect reads or a crash. Also, an unchecked varint could trigger a multi-GB allocation. Add a 1 MB sanity limit checked before resize() and ReadRaw(). commit_hash:bcbdaa1546ddb77c3d557699187e41747c32d988
Diffstat (limited to 'yt/cpp/mapreduce/interface/common.cpp')
0 files changed, 0 insertions, 0 deletions