Branch: refs/heads/new-compress-level-checks
Home:
https://github.com/kronosnet/kronosnet
Commit: 8a3f0cdc6ebf1b58f0a07e4fb1e7434d9f531d5c
https://github.com/kronosnet/kronosnet/commit/8a3f0cdc6ebf1b58f0a07e4fb1e74…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2018-02-25 (Sun, 25 Feb 2018)
Changed paths:
M libknet/compress.c
M libknet/compress_bzip2.c
M libknet/compress_lz4.c
M libknet/compress_lz4hc.c
M libknet/compress_lzma.c
M libknet/compress_model.h
M libknet/compress_zlib.c
M libknet/tests/api_knet_handle_compress.c
Log Message:
-----------
[compress] delegate compress_level validation to compress libraries
- make val_level internal api call optional
- keep lzo2 val_level around due to the specific nature of compress_level values
- add internal compress_lib_test to do a round-robin (compress/decompress) check with
provided values
- drop unnecessary val_level checks around
- update internal compress API include file
- adjust api_knet_handle_compress test to use a known bad value for zlib validation
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>