diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-01-21 21:32:21 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-01-21 21:32:21 +0100 |
commit | 9111595e23eadfc005d2b75dd7b48a65324bf7fa (patch) | |
tree | 8d2082d35da52009dfd836d641c24f43a3edc381 | |
parent | 79eb1dc8436e55c11936d923512b4c480a90fe85 (diff) |
Fix illegal array access
-rw-r--r-- | src/deflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deflate.c b/src/deflate.c index 2af8245..072cc97 100644 --- a/src/deflate.c +++ b/src/deflate.c @@ -252,7 +252,7 @@ static int8_t deflate_huffman(uint8_t * ll_lengths, uint16_t ll_size, return DEFLATE_ERR_OUTPUT_LENGTH; } deflate_output_now[0] = - deflate_output_now[-dist_val]; + *(deflate_output_now - dist_val); deflate_output_now++; } } |