diff --git a/filters/H5Zbitshuffle/src/H5Zbitshuffle.jl b/filters/H5Zbitshuffle/src/H5Zbitshuffle.jl index b6f4119d2..5f1268249 100644 --- a/filters/H5Zbitshuffle/src/H5Zbitshuffle.jl +++ b/filters/H5Zbitshuffle/src/H5Zbitshuffle.jl @@ -196,7 +196,9 @@ function H5Z_filter_bitshuffle( end size = nbytes_uncomp ÷ elem_size - buf_size_out <= 0 && error("bitshuffle_h5plugin: Non-positive buf_size_out for malloc: $buf_size_out") + buf_size_out <= 0 && error( + "bitshuffle_h5plugin: Non-positive buf_size_out for malloc: $buf_size_out" + ) out_buf = Libc.malloc(buf_size_out) if out_buf == C_NULL error( diff --git a/filters/H5Zbzip2/src/H5Zbzip2.jl b/filters/H5Zbzip2/src/H5Zbzip2.jl index b469f0008..ec8c12c4f 100644 --- a/filters/H5Zbzip2/src/H5Zbzip2.jl +++ b/filters/H5Zbzip2/src/H5Zbzip2.jl @@ -40,7 +40,8 @@ function H5Z_filter_bzip2( # Decompress outbuflen = nbytes * 3 + 1 - outbuflen <= 0 && error("H5Zbzip2: Non-positive outbuflen for malloc: $outbuflen.") + outbuflen <= 0 && + error("H5Zbzip2: Non-positive outbuflen for malloc: $outbuflen.") outbuf = Libc.malloc(outbuflen) if outbuf == C_NULL error("H5Zbzip2: memory allocation failed for bzip2 decompression.") @@ -107,7 +108,8 @@ function H5Z_filter_bzip2( # Prepare the output buffer outbuflen = nbytes + nbytes ÷ 100 + 600 # worse case (bzip2 docs) - outbuflen <= 0 && error("H5Zbzip2: Non-positive outbuflen for malloc: $outbuflen.") + outbuflen <= 0 && + error("H5Zbzip2: Non-positive outbuflen for malloc: $outbuflen.") outbuf = Libc.malloc(outbuflen) @debug "Allocated" outbuflen outbuf if outbuf == C_NULL diff --git a/filters/H5Zlz4/src/H5Zlz4.jl b/filters/H5Zlz4/src/H5Zlz4.jl index bf84003eb..b726666d1 100644 --- a/filters/H5Zlz4/src/H5Zlz4.jl +++ b/filters/H5Zlz4/src/H5Zlz4.jl @@ -128,7 +128,8 @@ function H5Z_filter_lz4( nBlocks = (nbytes - 1) ÷ blockSize + 1 maxDestSize = nBlocks * CodecLz4.LZ4_compressBound(blockSize) + 4 + 8 + nBlocks * 4 - maxDestSize <= 0 && error("H5Zlz4: Non-positive maxDestSize for malloc: $maxDestSize") + maxDestSize <= 0 && + error("H5Zlz4: Non-positive maxDestSize for malloc: $maxDestSize") outBuf = Libc.malloc(maxDestSize) outBuf == C_NULL && error("H5Zlz4: Could not allocate memory via malloc")