]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/commit
filefec: Bug fix for the files with certain lengths (see the longer explanation)
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Mon, 25 Jan 2016 12:55:49 +0000 (18:25 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Mon, 25 Jan 2016 13:32:36 +0000 (19:02 +0530)
commite1b3dae030cf8e5600e28f15141317719f7eafc2
tree90b0dec7914855c396dd4b2f70f51270ae34841a
parentccd68ce9e2eeb12507b658aaed01f9432c56a40d
filefec: Bug fix for the files with certain lengths (see the longer explanation)

Bodecs Bela (bodecsb@vivanet.hu) reported cases where files with
certain sizes, when encoded and then decoded produces slightly longer
files with some extra padded bytes. To reproduce the bug, the input file
sizes needs to be any length in the range:

 (n * 4096 - (k - 1)) < length <= (n * 4096)

Thanks to Bodecs and jg71 for bringing it to my attention.
(https://tahoe-lafs.org/pipermail/tahoe-dev/2013-September/008699.html)
zfec/filefec.py
zfec/test/test_zfec.py