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

Problems when porting lzma code Java -> Rust #89

Open
Niedzwiedzw opened this issue Nov 20, 2022 · 1 comment
Open

Problems when porting lzma code Java -> Rust #89

Niedzwiedzw opened this issue Nov 20, 2022 · 1 comment

Comments

@Niedzwiedzw
Copy link

Hey, I'm porting a pretty old application which utilizes 7zip and AES. Thing is, for AES to work the buffer needs to be of length dividable by 16. This is a problem, because adding trailing zeroes (like the old java implementation did) crashes the program with Found end-of-stream marker but more bytes are available error. Handling the error doesn't help, because output stream is empty. Would it be a problem to add support for such behaviour? My project really depends on it :)

@Niedzwiedzw
Copy link
Author

Niedzwiedzw commented Nov 20, 2022

#90 this fixes it for me, but I'm not sure whether you'd accept such solution as it's more of a quick dirty hack than a solution. Maybe a feature flag like allow-trailing-bytes would be better solution here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants