-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
fix: -Wunsafe-buffer-usage warnings in GetNextZoomLevel() #43803
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
ckerr
added
semver/patch
backwards-compatible bug fixes
target/30-x-y
PR should also be added to the "30-x-y" branch.
target/31-x-y
PR should also be added to the "31-x-y" branch.
target/32-x-y
PR should also be added to the "32-x-y" branch.
target/33-x-y
PR should also be added to the "33-x-y" branch.
labels
Sep 19, 2024
MarshallOfSound
approved these changes
Sep 20, 2024
No Release Notes |
I was unable to backport this PR to "30-x-y" cleanly; |
trop
bot
removed
the
target/30-x-y
PR should also be added to the "30-x-y" branch.
label
Sep 21, 2024
I was unable to backport this PR to "32-x-y" cleanly; |
I was unable to backport this PR to "31-x-y" cleanly; |
trop
bot
added
needs-manual-bp/32-x-y
needs-manual-bp/31-x-y
and removed
target/32-x-y
PR should also be added to the "32-x-y" branch.
target/31-x-y
PR should also be added to the "31-x-y" branch.
labels
Sep 21, 2024
I have automatically backported this PR to "33-x-y", please check out #43820 |
trop
bot
added
in-flight/33-x-y
merged/33-x-y
PR was merged to the "33-x-y" branch.
and removed
target/33-x-y
PR should also be added to the "33-x-y" branch.
in-flight/33-x-y
labels
Sep 21, 2024
ckerr
added a commit
that referenced
this pull request
Sep 23, 2024
MarshallOfSound
pushed a commit
that referenced
this pull request
Sep 24, 2024
fix: -Wunsafe-buffer-usage warnings in GetNextZoomLevel() (#43803)
trop
bot
added
merged/32-x-y
PR was merged to the "32-x-y" branch.
and removed
in-flight/32-x-y
labels
Sep 24, 2024
ckerr
added a commit
that referenced
this pull request
Sep 24, 2024
trop
bot
added
merged/31-x-y
PR was merged to the "31-x-y" branch.
and removed
in-flight/31-x-y
labels
Sep 25, 2024
trop bot
added a commit
that referenced
this pull request
Sep 25, 2024
Co-authored-by: Charles Kerr <[email protected]>
ckerr
added a commit
that referenced
this pull request
Sep 25, 2024
fix: -Wunsafe-buffer-usage warnings in GetNextZoomLevel() (#43803) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <[email protected]>
trop
bot
added
merged/30-x-y
PR was merged to the "30-x-y" branch.
and removed
in-flight/30-x-y
needs-manual-bp/30-x-y
labels
Sep 25, 2024
3 tasks
yangannyx
pushed a commit
to yangannyx/electron
that referenced
this pull request
Oct 21, 2024
yangannyx
pushed a commit
to yangannyx/electron
that referenced
this pull request
Oct 21, 2024
yangannyx
pushed a commit
to yangannyx/electron
that referenced
this pull request
Oct 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in-flight/main
merged/30-x-y
PR was merged to the "30-x-y" branch.
merged/31-x-y
PR was merged to the "31-x-y" branch.
merged/32-x-y
PR was merged to the "32-x-y" branch.
merged/33-x-y
PR was merged to the "33-x-y" branch.
semver/patch
backwards-compatible bug fixes
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 Change
Part 6 in a series to fix
-Wunsafe-buffer-usage
warnings in electronshell/
.This PR fixes three warnings in
GetNextZoomLevel()
. The previous code is reasonable IMO but still kicks a clang warning because of its use of pointer math. 🤷♂️ This PR uses iterators and begin / end / find_if instead.The warnings fixed by this PR:
Checklist
npm test
passesRelease Notes
Notes: none.