diff options
| author | babenko <[email protected]> | 2026-04-27 19:04:22 +0300 |
|---|---|---|
| committer | babenko <[email protected]> | 2026-04-27 20:12:12 +0300 |
| commit | 827fabc2ea582a9e7f61bc8c3ceea68df3ddfdee (patch) | |
| tree | 34855008b6d67f050d24924ae2a93270fd28224f /yt/cpp/mapreduce/interface/common.cpp | |
| parent | 3b522f5a56e4c07a50ecec00e730d61b8f5cb7f8 (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
