presto-orc/src/main/java/io/prestosql/orc/OrcLz4Decompressor.java/OrcLz4Decompressor/decompress
class OrcLz4Decompressor:    @Override
    public int decompress(byte[] input, int offset, int length, OutputBuffer output)
            throws OrcCorruptionException
    {
        try {
            byte[] buffer = output.initialize(maxBufferSize);
            return decompressor.decompress(input, offset, length, buffer, 0, buffer.length);
        }
        catch (MalformedInputException e) {
            throw new OrcCorruptionException(e, orcDataSourceId, "Invalid compressed stream");
        }
    }