-
Notifications
You must be signed in to change notification settings - Fork 50
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
Safer pointer dereferences #505
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
justsmth
force-pushed
the
safer-ptr-deref
branch
from
August 19, 2024 15:58
9206b55
to
f690069
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #505 +/- ##
==========================================
- Coverage 95.80% 92.52% -3.28%
==========================================
Files 61 67 +6
Lines 8143 9277 +1134
Branches 0 9277 +9277
==========================================
+ Hits 7801 8584 +783
- Misses 342 422 +80
- Partials 0 271 +271 ☔ View full report in Codecov by Sentry. |
justsmth
force-pushed
the
safer-ptr-deref
branch
3 times, most recently
from
August 19, 2024 16:50
d527c49
to
b65d16a
Compare
skmcgrail
previously approved these changes
Aug 19, 2024
samuel40791765
previously approved these changes
Aug 27, 2024
justsmth
dismissed stale reviews from samuel40791765 and skmcgrail
via
August 27, 2024 21:28
402379e
justsmth
force-pushed
the
safer-ptr-deref
branch
from
August 27, 2024 21:28
b65d16a
to
402379e
Compare
skmcgrail
previously approved these changes
Aug 27, 2024
samuel40791765
previously approved these changes
Aug 27, 2024
justsmth
dismissed stale reviews from samuel40791765 and skmcgrail
via
August 27, 2024 22:07
8c8e522
justsmth
force-pushed
the
safer-ptr-deref
branch
from
August 27, 2024 22:07
402379e
to
8c8e522
Compare
skmcgrail
approved these changes
Aug 27, 2024
samuel40791765
approved these changes
Aug 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of changes:
ManagedPointer
explicit (instead of using Deref):MutPointer
type as an analog ofConstPointer
.ManagedPointer
useas_mut
to obtain aMutPointer
.ManagedPointer
useas_const
to obtain aConstPointer
.ManagedPointer
useas_mut_unsafe
to obtain aMutPointer
.Call-outs:
The uses of
as_mut_unsafe
are limited to calls made to the following AWS-LC functions:These function only modify
EVP_PKEY
ref-count while holding a global lock.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.