]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - Validate output length in (de)compression tests
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Fri, 28 Nov 2008 12:51:28 +0000 (20:51 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Dec 2008 00:02:04 +0000 (11:02 +1100)
commit1759bbdf6ec5a97c8b51665fbe50d3bf7b43e972
tree77fb3008160e5fedd67464c2656506f81d21da48
parentebef5cf7caf0e331f4adf3316de08f8691393790
crypto: testmgr - Validate output length in (de)compression tests

When self-testing (de)compression algorithms, make sure the actual size of
the (de)compressed output data matches the expected output size.
Otherwise, in case the actual output size would be smaller than the expected
output size, the subsequent buffer compare test would still succeed, and no
error would be reported.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c