fix(deps): update rust crate eyre to v0.6.12 [security] #159
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.6.9
->=0.6.12
GitHub Vulnerability Alerts
GHSA-4v52-7q2x-v4xj
In affected versions, after a
Report
is constructed usingwrap_err
orwrap_err_with
to attach a message of typeD
onto an error of typeE
, then usingdowncast
to recover ownership of either the value of typeD
or the value of typeE
, one of two things can go wrong:If downcasting to
E
, there remains a value of typeD
to be dropped. It is incorrectly "dropped" by runningE
's drop behavior, rather thanD
's. For example ifD
is&str
andE
isstd::io::Error
, there would be a call ofstd::io::Error::drop
in which the reference received by theDrop
impl does not refer to a valid value of typestd::io::Error
, but instead to&str
.If downcasting to
D
, there remains a value of typeE
to be dropped. WhenD
andE
do not happen to be the same size,E
's drop behavior is incorrectly executed in the wrong location. The reference received by theDrop
impl may point left or right of the realE
value that is meant to be getting dropped.In both cases, when the
Report
contains an errorE
that has nontrivial drop behavior, the most likely outcome is memory corruption.When the
Report
contains an errorE
that has trivial drop behavior (for example aUtf8Error
) but whereD
has nontrivial drop behavior (such asString
), the most likely outcome is that downcasting toE
would leakD
.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 is behind base branch, 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.