rclone/crypt
Nick Craig-Wood 154e91bb23 crypt: Fix data corruption caused by seeking - #828
The corruption was caused when the file was read to the end thus
setting io.EOF and returning the buffers to the pool.  Seek reset the
EOF and carried on using the buffers that had been returned to the
pool thus causing corruption when other goroutines claimed the buffers
simultaneously.

Fix by resetting the buffer pointers to nil when released and claiming
new ones when seek resets EOF.  Also added locking for Read and Seek
which shouldn't be run concurrently.
2016-11-03 22:55:05 +00:00
..
pkcs7 Implement crypt for encrypted remotes - #219 2016-08-23 17:45:37 +01:00
cipher.go crypt: Fix data corruption caused by seeking - #828 2016-11-03 22:55:05 +00:00
cipher_test.go crypt: Fix data corruption on seek 2016-10-25 15:15:44 +01:00
crypt.go crypt: speed up repeated seeking - fixes #804 2016-10-21 10:03:16 +01:00
crypt2_test.go Add options for Open and implement Range for all remotes 2016-10-05 21:03:56 +01:00
crypt_config_test.go Make it possible to test Fs multiple times and use this with crypt 2016-08-23 17:45:37 +01:00
crypt_test.go Add options for Open and implement Range for all remotes 2016-10-05 21:03:56 +01:00