Add limit parameter to decompressZlib
authorBen Deutsch <ben@bendeutsch.de>
Tue, 30 Jan 2018 21:12:40 +0000 (22:12 +0100)
committersfan5 <sfan5@live.de>
Sat, 1 Feb 2020 13:05:26 +0000 (14:05 +0100)
commit2b3490db1f0e99a427e34135770f8e5afcf275ce
tree8da1c031def8d582ba2ce7b79002811e150c1808
parent1116918dbbbf7f36920c6d43a4fc504a09f0df49
Add limit parameter to decompressZlib

This can prevent untrusted data, such as sent over the network,
from consuming all memory with a specially crafted payload.
src/serialization.cpp
src/serialization.h
src/unittest/test_compression.cpp