Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LcpDecryptor and FileZipLicenseContainer #602

Merged
merged 9 commits into from
Jan 7, 2025
Merged

Conversation

qnga
Copy link
Member

@qnga qnga commented Dec 30, 2024

  • Rewrite CbcLcpResource with almost exhaustive tests
  • Make strategy in length consistent with the contract : length is a hint, so we consistently return a hint.
  • Stop using resource.length (just a hint) to compute the location of built-in padding.
  • Fix some ZipFile left opened.

Fix #601 (Illegal state near the end of the CBC resource).

@qnga qnga requested a review from mickael-menu December 30, 2024 12:07
@mickael-menu
Copy link
Member

Could you explain what does this fix and why? Thanks!

@qnga qnga changed the base branch from develop to main January 2, 2025 09:50
@qnga
Copy link
Member Author

qnga commented Jan 2, 2025

The diff had spoken for itself. It no longer does though, I basically rewrote everything. I suggest you read the whole LcpDecryption file, it's clearer now. I also introduced almost exhaustive tests.

@qnga qnga marked this pull request as ready for review January 2, 2025 09:53
@mickael-menu mickael-menu merged commit 32b5864 into main Jan 7, 2025
3 checks passed
@mickael-menu mickael-menu deleted the lcp-fixes branch January 7, 2025 15:18
ditzdragos pushed a commit to ditzdragos/readium-kotlin-toolkit that referenced this pull request Jan 20, 2025
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.

2 participants