summary refs log tree commit diff
path: root/synapse/util/jsonobject.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-05-01 16:19:39 +0100
committerRichard van der Hoff <richard@matrix.org>2018-05-01 17:54:19 +0100
commit33f469ba19586bbafa0cf2c7d7c35463bdab87eb (patch)
tree10e97f31a3a34eafd12032236805190d2f63d90e /synapse/util/jsonobject.py
parentupdate changelog and bump version to 0.28.0 (diff)
downloadsynapse-33f469ba19586bbafa0cf2c7d7c35463bdab87eb.tar.xz
Apply some limits to depth to counter abuse
* When creating a new event, cap its depth to 2^63 - 1
* When receiving events, reject any without a sensible depth

As per https://docs.google.com/document/d/1I3fi2S-XnpO45qrpCsowZv8P8dHcNZ4fsBsbOW7KABI
Diffstat (limited to 'synapse/util/jsonobject.py')
0 files changed, 0 insertions, 0 deletions