summaryrefslogtreecommitdiffhomepage
path: root/tests/util.py
diff options
context:
space:
mode:
authorMaarten <maarten@informaarten.nl>2012-11-30 15:14:49 +0100
committerMaarten <maarten@informaarten.nl>2012-11-30 15:14:49 +0100
commit3bbcf808d8da43a379cee5ce3d004d3c6eb6e1b7 (patch)
treefcc933f5f9b5f4f6f0db89675a268f2e71e128f7 /tests/util.py
parent0ae0e9800c7bfb3f8ea40fa0d33ebf6dff49f759 (diff)
Limit memory allocation of get_bytes to 1MB
If get_bytes() can pad unlimited, a RSA pub key could be crafted that would allocate GB's of nulls, thereby forming a DoS-vector.
Diffstat (limited to 'tests/util.py')
0 files changed, 0 insertions, 0 deletions