diff options
-rw-r--r-- | cmake/detect-arch.c | 4 | ||||
-rw-r--r-- | cmake/run-and-compare.cmake | 2 | ||||
-rw-r--r-- | cmake/test-compress.cmake | 2 | ||||
-rw-r--r-- | cmake/test-tools.cmake | 1 | ||||
-rw-r--r-- | deflate_fast.c | 1 | ||||
-rw-r--r-- | inffast.c | 4 |
6 files changed, 6 insertions, 8 deletions
diff --git a/cmake/detect-arch.c b/cmake/detect-arch.c index 8cae4eb..84e6a84 100644 --- a/cmake/detect-arch.c +++ b/cmake/detect-arch.c @@ -36,7 +36,7 @@ #if defined(__64BIT__) || defined(__powerpc64__) || defined(__ppc64__) #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #error archfound powerpc64le - #else + #else #error archfound powerpc64 #endif #else @@ -94,7 +94,7 @@ #error archfound rs6000 // RISC-V -#elif defined(__riscv) +#elif defined(__riscv) #if __riscv_xlen == 64 #error archfound riscv64 #elif __riscv_xlen == 32 diff --git a/cmake/run-and-compare.cmake b/cmake/run-and-compare.cmake index af54abc..209d31e 100644 --- a/cmake/run-and-compare.cmake +++ b/cmake/run-and-compare.cmake @@ -59,4 +59,4 @@ endif() if(CMD_RESULT) message(FATAL_ERROR "Run compare failed: ${CMD_RESULT}") -endif()
\ No newline at end of file +endif() diff --git a/cmake/test-compress.cmake b/cmake/test-compress.cmake index 321fa54..cfc7613 100644 --- a/cmake/test-compress.cmake +++ b/cmake/test-compress.cmake @@ -261,4 +261,4 @@ if(GZIP_VERIFY AND NOT "${COMPRESS_ARGS}" MATCHES "-T") endif() endif() -cleanup_always()
\ No newline at end of file +cleanup_always() diff --git a/cmake/test-tools.cmake b/cmake/test-tools.cmake index 3275935..4afe07c 100644 --- a/cmake/test-tools.cmake +++ b/cmake/test-tools.cmake @@ -32,4 +32,3 @@ add_test(NAME switchlevels-help COMMAND ${CMAKE_COMMAND} "-DCOMMAND=${TEST_COMMAND}" -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/run-and-redirect.cmake) - diff --git a/deflate_fast.c b/deflate_fast.c index 1594886..1e11235 100644 --- a/deflate_fast.c +++ b/deflate_fast.c @@ -47,7 +47,6 @@ Z_INTERNAL block_state deflate_fast(deflate_state *s, int flush) { /* Find the longest match, discarding those <= prev_length. * At this point we have always match length < MIN_MATCH */ - if (dist <= MAX_DIST(s) && dist > 0 && hash_head != 0) { /* To simplify the code, we prevent matches with the string * of window index 0 (in particular we have to avoid a match @@ -152,8 +152,8 @@ void Z_INTERNAL zng_inflate_fast(PREFIX3(stream) *strm, unsigned long start) { lmask = (1U << state->lenbits) - 1; dmask = (1U << state->distbits) - 1; - /* Detect if out and window point to the same memory allocation. In this instance it is - necessary to use safe chunk copy functions to prevent overwriting the window. If the + /* Detect if out and window point to the same memory allocation. In this instance it is + necessary to use safe chunk copy functions to prevent overwriting the window. If the window is overwritten then future matches with far distances will fail to copy correctly. */ extra_safe = (out >= window && out + INFLATE_FAST_MIN_LEFT <= window + wsize); |