-
Notifications
You must be signed in to change notification settings - Fork 70
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
Forbid Zero-sized types from deserialization #145
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iho Thanks for working on it! There are a couple of things:
- Test needs to be fixed (CI failed due to unused import in the test file)
- Let's also fail on the serialization of Vec, so there is symmetry and developers could catch errors (unfortunately, it seems there is no way to make the implementation generic over Vec in Rust, so we cannot catch it at compile time) - add/update a test for it as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iho Thanks for the PR!
Great! As soon as a release is published I will make sure that the RustSec advisory is updated. |
Looks like a release was made just a few days before this getting merged. Are we going to get a new release soon? |
@paolobarbolini I guess we will make release this week when I finish my PR and another one(pretty small). |
…solve the RUSTSEC-2023-0033 (near#145)
* feat: Forbid Vectors of Zero-sized types from de-/serialization to resolve the RUSTSEC-2023-0033 (#145) This is a backport of commit e880d87. * chore: update MSRV and Cargo workspace syntax Set MSRV to 1.66 and update Cargo workspace syntax together with versions in members. While at it restrict serde dependency in two non-member crates so that it compiles with Rust 1.66. * chore: additional prepare for release --------- Co-authored-by: iho <[email protected]> Co-authored-by: Michal Nazarewicz <[email protected]> Co-authored-by: dj8yf0μl <[email protected]>
Resolves RUSTSEC-2023-0033
Resolves #19
Resolves #52