Whamcloud - gitweb
libext2fs: fix bug in ext2fs_digest_encode()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 6 Apr 2015 00:35:50 +0000 (20:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 Apr 2015 00:35:50 +0000 (20:35 -0400)
commit8afaf3be33fe129357cb616ca6939077d6e5ead9
treef45f2094e652c91ca06c2fba479f377a833a4f05
parent4fb758aa4bf235ecd85786b4e819941dc534a0c0
libext2fs: fix bug in ext2fs_digest_encode()

The ext2fs_digest_encode() function was broken for any input which was
a multiple of 3.  Previously we never hit that case, so we never
noticed it was busted.  Also fix up the unit test so future problems
like this get noticed quickly.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/Makefile.in
lib/ext2fs/digest_encode.c