autobuf: let's limit the maximum size to 16MB
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 24 Jun 2016 07:39:12 +0000 (09:39 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 24 Jun 2016 07:39:57 +0000 (09:39 +0200)
commitd577a35efff057d1393487423b8ec65c9dcd4716
tree73d70b584be6eb07a7825158e822e1087765ff85
parentac80336d56e5eecfb6acf9e7469e9c73f3b3cc36
autobuf: let's limit the maximum size to 16MB

TO avoid thrashing the system when an autobuf is abused.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/common/autobuf.h