libdpkg: Move compression level max bound check from dpkg-deb
The compression level max bound check is specific to each compressor, and we cannot simply use a single max bound for every compressor. Move the check into the compressor_check_params() function where we can check whether it is coherent with the compressor requested. The dpkg_options_parse_arg_int() already makes sure we get a sanitized value that is 0 or larger but not larger than INT_MAX.
Loading
Please register or sign in to comment