libgocryptfs/internal/readpassword
Jakob Unterwurzacher 3784901fce 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 .
2017-02-13 09:13:22 +01:00
..
extpass_test.go tests: exit with correct error code from TestMain 2016-06-16 21:56:23 +02:00
read.go readpassword: limit password length to 1000 bytes 2017-02-13 09:13:22 +01:00
stdin_test.go readpassword: create internal package for password reading 2016-06-15 22:44:24 +02:00