Skip to content
  • Nick Terrell's avatar
    Fix & fuzz ZSTD_generateSequences · 731f4b70
    Nick Terrell authored
    This function was seriously flawed:
    * It didn't do output bounds checks
    * It produced invalid sequences when an uncompressed or RLE block was emitted
    * It produced invalid sequences when the block splitter was enabled
    * It produced invalid sequences when ZSTD_c_targetCBlockSize was enabled
    
    I've attempted to fix these issues, but this function is just a bad idea,
    so I've marked it as deprecated and unsafe. We should replace it with
    `ZSTD_extractSequences()` which operates on a compressed frame.
    731f4b70
To find the state of this project's repository at the time of any of these versions, check out the tags.