dweiller 138a35df8f zstandard: fix division by zero when using RingBuffer
This change fixes some division-by-zero bugs introduced by the optimized
ring buffer read/write functions in d8c067966.

There are edge cases where decompression can use a length zero ring
buffer as the size of the ring buffer used is exactly the the window
size specified by a Zstandard frame, and this can be zero. Switching
away from loops to mem copies means that we need to ensure ring buffers
do not have length zero ring when attempting to read/write from them.
2023-11-10 15:18:16 -05:00
..
2023-11-03 23:18:21 -04:00
2023-10-31 21:37:35 -04:00
2023-10-21 21:24:55 +00:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-11-09 17:39:27 +02:00
2023-11-03 23:18:21 -04:00
2023-10-21 21:24:55 +00:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-04-22 13:09:15 +03:00
2023-10-02 15:31:49 -06:00
2023-10-23 22:42:18 -04:00
2023-10-31 21:37:35 -04:00
2023-10-02 15:31:49 -06:00
2023-11-09 17:41:14 +01:00
2023-10-21 21:24:55 +00:00
2023-10-29 07:20:36 -04:00
2023-10-31 21:37:35 -04:00
2023-10-25 04:28:30 -04:00
2023-11-03 23:18:21 -04:00
2023-11-03 23:18:21 -04:00
2023-10-27 03:33:49 -04:00
2023-10-26 22:35:38 -04:00
2023-10-21 21:24:55 +00:00
2023-10-21 21:24:55 +00:00