From 55c44b61d4852fc80a2c536c7ede7b16514c5350 Mon Sep 17 00:00:00 2001 From: Dominik Loidolt <dominik.loidolt@univie.ac.at> Date: Wed, 31 Jul 2024 11:57:06 +0200 Subject: [PATCH] Fix typos --- lib/common/cmp_error.c | 2 +- lib/decompress/decmp.c | 4 ++-- lib/decompress/read_bitstream.h | 4 ++-- test/fuzz/fuzz_round_trip.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/common/cmp_error.c b/lib/common/cmp_error.c index 30da8f5..d3f53c7 100644 --- a/lib/common/cmp_error.c +++ b/lib/common/cmp_error.c @@ -89,7 +89,7 @@ const char* cmp_get_error_string(enum cmp_error code) case CMP_ERROR_PAR_MAX_USED_BITS: return "Maximum used bits parameters are not valid"; case CMP_ERROR_PAR_NULL: - return "Pointer to the compression parameters structure is NULL."; + return "Pointer to the compression parameters structure is NULL"; case CMP_ERROR_CHUNK_NULL: return "Pointer to the chunk is NULL. No data, no compression"; diff --git a/lib/decompress/decmp.c b/lib/decompress/decmp.c index b9b3e9f..3120ec9 100644 --- a/lib/decompress/decmp.c +++ b/lib/decompress/decmp.c @@ -297,7 +297,7 @@ static __inline uint32_t re_map_to_pos(uint32_t value_to_unmap) /** - * @brief decompress the next code word in the bitstream and decorate it with + * @brief decompress the next code word in the bitstream and decorrelate it with * the model * * @param setup pointer to the decoder setup @@ -316,7 +316,7 @@ static int decode_value(const struct decoder_setup *setup, uint32_t *decoded_val /* map the unsigned decode value back to a signed value */ *decoded_value = re_map_to_pos(*decoded_value); - /* decorate data the data with the model */ + /* decorrelate data the data with the model */ *decoded_value += round_fwd(model, setup->lossy_par); /* we mask only the used bits in case there is an overflow when adding the model */ diff --git a/lib/decompress/read_bitstream.h b/lib/decompress/read_bitstream.h index f46804c..f6bcc3a 100644 --- a/lib/decompress/read_bitstream.h +++ b/lib/decompress/read_bitstream.h @@ -260,7 +260,7 @@ static __inline uint64_t bit_read_bits(struct bit_decoder *dec, unsigned int nb_ /** - * @brief same as bit_read_bits32() but only returns 32 bit + * @brief same as bit_read_bits32() but only returns maximum 32 bit * @warning do not read more bits than the local register has unconsumed bits. * If you do this, the bit_refill function will return the BIT_OVERFLOW * status the next time the register is refilled. @@ -268,7 +268,7 @@ static __inline uint64_t bit_read_bits(struct bit_decoder *dec, unsigned int nb_ * @param dec pointer to a bit_decoder context * @param nb_bits number of bits to read; only works if 1 <= nb_bits <= 32 * - * @returns extracted 32 bit value + * @returns extracted maximum 32 bit value */ static __inline uint32_t bit_read_bits32(struct bit_decoder *dec, unsigned int nb_bits) diff --git a/test/fuzz/fuzz_round_trip.c b/test/fuzz/fuzz_round_trip.c index d87cb81..1aec745 100644 --- a/test/fuzz/fuzz_round_trip.c +++ b/test/fuzz/fuzz_round_trip.c @@ -125,7 +125,7 @@ static uint32_t chunk_round_trip(void *data, uint32_t data_size, int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size) { struct cmp_par cmp_par; - struct cmp_par *cmp_par_ptr=NULL; + struct cmp_par *cmp_par_ptr = NULL; const uint8_t *model = NULL; void *up_model = NULL; uint32_t cmp_size_bound; -- GitLab