chore(deps): update rust crate pprof to 0.14 [security] #84
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.13
->0.14
GitHub Vulnerability Alerts
GHSA-gw5w-5j7f-jmjj
The library breaks the safety assumptions when using unsafe API
std::slice::from_raw_parts
. First, when using the API in iterator implementation (TempFdArrayIterator.next
), generic type could be any type, which would create and pass a misaligned pointer to the unsafe API. Second, when validating the address, the code passed the typec_void
, which could also be any type, leading to potential uninitialized memory exposure.Two unsound usages here highlight the necessity for developers to perform type checks before doing type conversion with unsafe API.
The panic caused by the misalignment causes several downstream applications (e.g.,
greptimedb
) to crash when usingpprof::report::ReportBuilder::build
.This was patched in 0.14.0.
The developer also suggested moving to pprof2.
Release Notes
tikv/pprof-rs (pprof)
v0.14.0
Fixed
Changed
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.