PSeitz / lz4_flex

Fastest pure Rust implementation of LZ4 compression/decompression.
MIT License
460 stars 31 forks source link

Fix: Out of bounds write #115

Closed PSeitz closed 1 year ago

PSeitz commented 1 year ago

This fixes an out of bounds write for corrupted data using a dictionary.

codecov[bot] commented 1 year ago

Codecov Report

Merging #115 (366dfbc) into main (e81e6e3) will increase coverage by 0.09%. The diff coverage is 95.00%.

@@            Coverage Diff             @@
##             main     #115      +/-   ##
==========================================
+ Coverage   89.78%   89.87%   +0.09%     
==========================================
  Files          13       13              
  Lines        2458     2470      +12     
==========================================
+ Hits         2207     2220      +13     
+ Misses        251      250       -1     
Impacted Files Coverage Δ
src/block/decompress.rs 96.03% <92.30%> (+0.05%) :arrow_up:
src/block/decompress_safe.rs 98.81% <100.00%> (+0.43%) :arrow_up: