Skip to content

Do not expose length of compressed chunks in output file. Add fuzz testing.#5

Merged
JoergDF merged 5 commits into
mainfrom
compresslen
May 22, 2026
Merged

Do not expose length of compressed chunks in output file. Add fuzz testing.#5
JoergDF merged 5 commits into
mainfrom
compresslen

Conversation

@JoergDF
Copy link
Copy Markdown
Owner

@JoergDF JoergDF commented May 22, 2026

  • Re-segment compressed, variable sized chunks to fixed sized chunks which are then encrypted. Then the output file does not contain a length indicator, so it cannot reveal indirect information about the compressed data.
  • For that refactor thread usage to a pipeline architecture, which also makes better use of cpu cores and can improve performance.
  • Adapt and add unit tests.
  • Fix add overflow in file splitting of write_file(). Revealed by fuzz test.
  • Canonicalize input paths from command line.
  • Increment file format version to v4.

JoergDF added 5 commits April 25, 2026 11:27
- Re-segment compressed, variable sized chunks to fixed sized chunks which are then encrypted. Then the output file does not contain a length indicator, so it cannot reveal indirect information about the compressed data.
- For that refactor thread usage to a pipeline architecture, which also makes better use of cpu cores and can improve performance.
- Adapt and add unit tests.
- Fix memory leak in both resegment methods: Replace split_off()/replace() with drain().
- Optimize channel sizes and remove unnecessary channel drops (missing channel error seen once).
- Replace unnecessary BTreeMap usage with HashMap.
- Add fuzz testing.
- Fix add overflow in file splitting of write_file(). Revealed by fuzz test.
@JoergDF JoergDF merged commit adc9a4e into main May 22, 2026
6 checks passed
@JoergDF JoergDF deleted the compresslen branch May 22, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant