Fix bug on decompression
authorFilipe David Manana <fdmanana@apache.org>
Sat, 26 Mar 2011 16:29:35 +0000 (16:29 +0000)
committerFilipe David Manana <fdmanana@apache.org>
Sat, 26 Mar 2011 16:29:35 +0000 (16:29 +0000)
commit8629cad7a52c01e3184b042690a9e8e6435fce95
treeeb61a7f96f865202e502281c50bf175f22d47d68
parentd93a8eb6574a397fc4aaa9095d16c87fcc8a12b4
Fix bug on decompression

The uncompressed length was being used where the compressed length was expected.

The particular compression input data that triggered the bug was added to
the eunit test.
c_src/snappy.cc
test/snappy_tests.erl