diff options
author | Jakob Unterwurzacher | 2017-03-06 23:50:17 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-03-07 20:56:50 +0100 |
commit | 2f953fdb95f44078895fec9bc4d542cd371126be (patch) | |
tree | da1a2cf8fa8f438f27193ce09b8ef2017a54bbb8 /internal/contentenc/intrablock.go | |
parent | efc88346bec52675d5243f988aa3386d617ee1c4 (diff) |
contentenc: catch integer underflow in file size calculation
If you truncate a ciphertext file to 19 bytes, you could get the
impression that the plaintext is 18446744073709551585 bytes long,
as reported by "ls -l".
Fix it by clamping the value to zero.
Diffstat (limited to 'internal/contentenc/intrablock.go')
0 files changed, 0 insertions, 0 deletions