diff options
author | Jakob Unterwurzacher | 2017-02-13 09:13:22 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-02-13 09:13:22 +0100 |
commit | 3784901fcee46d3e14e154b32cc6a7822bcc90f6 (patch) | |
tree | 82293ce300022be5c4f0aa24c9664f9bb7da23db /internal/ctlsock | |
parent | 54caaf4b980e0432baef54c5129aa53c43be70e8 (diff) |
readpassword: limit password length to 1000 bytes
This used to hang at 100% CPU:
cat /dev/zero | gocryptfs -init a
...and would ultimately send the box into out-of-memory.
The number 1000 is chosen arbitrarily and seems big enough
given that the password must be one line.
Suggested by @mhogomchungu in https://github.com/rfjakob/gocryptfs/issues/77 .
Diffstat (limited to 'internal/ctlsock')
0 files changed, 0 insertions, 0 deletions