aboutsummaryrefslogtreecommitdiff
path: root/masterkey.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-01-04 20:23:01 +0100
committerJakob Unterwurzacher2019-01-04 20:26:16 +0100
commitc1a2a36a7928953e88e53edb5cb86c7dd6ede21f (patch)
tree660c4b9a2182318b79e096f49534ec02a52e61a4 /masterkey.go
parent4b1d080673603e506e3d22a04f7f98f4bc3915e1 (diff)
fsck: don't misdetect a file hole at EOF
https://github.com/rfjakob/gocryptfs/issues/304 : A second minor issue is that `if bytes.Equal(buf, allZero) {` compares the whole buffer, although the last read could have been shorter. This could trigger the "skip file hole" code at the end of a file although there isn't any hole to skip.
Diffstat (limited to 'masterkey.go')
0 files changed, 0 insertions, 0 deletions