]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Discard repeated words
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
Sun, 6 Aug 2023 11:27:51 +0000 (13:27 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 7 Aug 2023 06:28:16 +0000 (08:28 +0200)
arch/x86/adler32_ssse3.c
inftrees.h
insert_string_tpl.h
test/fuzz/fuzzer_minigzip.c
test/minigzip.c
zlib.h.in

index 99ce795823b7b09b0381ac015906d13ecd768712..ae819d632e53aec0de6176d848c02b9b48934863 100644 (file)
@@ -54,7 +54,7 @@ Z_INTERNAL uint32_t adler32_ssse3(uint32_t adler, const uint8_t *buf, size_t len
         if (len < 16 + align_offset) {
             /* Let's eat the cost of this one unaligned load so that
              * we don't completely skip over the vectorization. Doing
-             * 16 bytes at a time unaligned is is better than 16 + <= 15
+             * 16 bytes at a time unaligned is better than 16 + <= 15
              * sums */
             vbuf = _mm_loadu_si128((__m128i*)buf);
             len -= 16;
index eeae9c6ac4e062a18364a976aac9449580014944..ad2be151f2c02c5b5a75473b55607c199f76a7ac 100644 (file)
@@ -44,7 +44,7 @@ typedef struct {
    examples/enough.c found in the zlib distributions.  The arguments to that
    program are the number of symbols, the initial root table size, and the
    maximum bit length of a code.  "enough 286 10 15" for literal/length codes
-   returns returns 1332, and "enough 30 9 15" for distance codes returns 592.
+   returns 1332, and "enough 30 9 15" for distance codes returns 592.
    The initial root table size (10 or 9) is found in the fifth argument of the
    inflate_table() calls in inflate.c and infback.c.  If the root table size is
    changed, then these maximum sizes would be need to be recalculated and
index 4acd67fd62c81ea8b0b327dfd34660b210e1c97f..c84617730ac3758eec989e76ab367b8517fcf8a2 100644 (file)
@@ -43,7 +43,7 @@
 
 /* ===========================================================================
  * Update a hash value with the given input byte
- * IN  assertion: all calls to to UPDATE_HASH are made with consecutive
+ * IN  assertion: all calls to UPDATE_HASH are made with consecutive
  *    input characters, so that a running hash key can be computed from the
  *    previous key instead of complete recalculation each time.
  */
@@ -81,7 +81,7 @@ Z_INTERNAL Pos QUICK_INSERT_STRING(deflate_state *const s, uint32_t str) {
  * Insert string str in the dictionary and set match_head to the previous head
  * of the hash chain (the most recent string with same hash key). Return
  * the previous length of the hash chain.
- * IN  assertion: all calls to to INSERT_STRING are made with consecutive
+ * IN  assertion: all calls to INSERT_STRING are made with consecutive
  *    input characters and the first STD_MIN_MATCH bytes of str are valid
  *    (except for the last STD_MIN_MATCH-1 bytes of the input file).
  */
index 819148d2b35b71642fe967741746059618156e9d..b59c69bd0451eb3826716ab0baf6b947b345fe70 100644 (file)
@@ -109,7 +109,7 @@ void gz_compress(FILE *in, gzFile out) {
 #ifdef USE_MMAP /* MMAP version, Miguel Albrecht <malbrech@eso.org> */
 
 /* Try compressing the input file at once using mmap. Return Z_OK if
- * if success, Z_ERRNO otherwise.
+ * success, Z_ERRNO otherwise.
  */
 int gz_compress_mmap(FILE *in, gzFile out) {
     int len;
index 2615433ce7fbf47591381836b8d9ba13816ee124..537f64bbabaa3a230728c58fac7f6781d9731c23 100644 (file)
@@ -129,7 +129,7 @@ void gz_compress(FILE *in, gzFile out) {
 #ifdef USE_MMAP /* MMAP version, Miguel Albrecht <malbrech@eso.org> */
 
 /* Try compressing the input file at once using mmap. Return Z_OK if
- * if success, Z_ERRNO otherwise.
+ * success, Z_ERRNO otherwise.
  */
 int gz_compress_mmap(FILE *in, gzFile out) {
     int len;
index 71f114a24f8410e003e56c4416e63575bf304301..45b6c8e0922154e05118aa75ef21402323c3ec62 100644 (file)
--- a/zlib.h.in
+++ b/zlib.h.in
@@ -924,7 +924,7 @@ Z_EXTERN int Z_EXPORT inflateSync(z_stream *strm);
      inflateSync returns Z_OK if a possible full flush point has been found,
    Z_BUF_ERROR if no more input was provided, Z_DATA_ERROR if no flush point
    has been found, or Z_STREAM_ERROR if the stream structure was inconsistent.
-   In the success case, the application may save the current current value of
+   In the success case, the application may save the current value of
    total_in which indicates where valid compressed data was found.  In the
    error case, the application may repeatedly call inflateSync, providing more
    input each time, until success or end of the input data.