Update Rust crate prettytable-rs to ^0.10.0 [SECURITY] #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.8
->^0.10.0
GitHub Vulnerability Alerts
GHSA-gfgm-chr3-x6px
In function
Table::as_ref
, a reference of vector is force cast to slice. There are multiple problems here:Vec::shrink_to_fit
. The function requires a mutable reference, so we have to force cast from immutable to mutable, which is undefined behavior (UB).&Vec<T>
and&[T]
still might not have the same layout. Treating them equally may lead to undefinted behavior (UB).Release Notes
phsym/prettytable-rs (prettytable-rs)
v0.10.0
Compare Source
Fixed
Changed
Table::as_ref
(#146)atty
tois-terminal
(#151)Thanks
Table::as_ref
v0.9.0
Compare Source
This release has been updated with latest dependencies versions.
This crate has been abandonned without notice for quite a while due to some personnal reasons. My apologies for that.
I'll try to do my best to continue to maintain it, at least for security updates. If I can't the find time to do it, I'll have no other option than
deprecating it, or find new contributors to handover the maintenance to. Feel free to raise your hand if you're interrested.
In the meantime, please expect a low update rate, and again please accept my apologies.
I'll do a pass on opened PRs after summer vacations.
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.