check for zero sized buffers in compress / decompress