Skip to content
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

Null check frame in CachedResourceLoader::updateRequestAfterRedirection #8461

Conversation

achristensen07
Copy link
Contributor

@achristensen07 achristensen07 commented Jan 10, 2023

547312c

Null check frame in CachedResourceLoader::updateRequestAfterRedirection
https://bugs.webkit.org/show_bug.cgi?id=250391
rdar://103833306

Reviewed by Chris Dumez.

Crash logs indicate the line that used the frame was crashing with null dereferences.
Add some null checks to not crash during frame teardown.

* Source/WebCore/loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::updateRequestAfterRedirection):

Canonical link: https://commits.webkit.org/258728@main

a17aaaa

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe   πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2   πŸ§ͺ api-mac   πŸ§ͺ gtk-wk2
  πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk1   πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk2
βœ… πŸ›  tv-sim   πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  watch-sim
βœ… πŸ›  πŸ§ͺ unsafe-merge

@achristensen07 achristensen07 self-assigned this Jan 10, 2023
@achristensen07 achristensen07 added the Page Loading For bugs in page loading, including handling of network callbacks. label Jan 10, 2023
Copy link
Contributor

@cdumez cdumez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@achristensen07 achristensen07 added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jan 10, 2023
https://bugs.webkit.org/show_bug.cgi?id=250391
rdar://103833306

Reviewed by Chris Dumez.

Crash logs indicate the line that used the frame was crashing with null dereferences.
Add some null checks to not crash during frame teardown.

* Source/WebCore/loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::updateRequestAfterRedirection):

Canonical link: https://commits.webkit.org/258728@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/Null-check-frame-in-CachedResourceLoaderupdateRequestAfterRedirection branch from a17aaaa to 547312c Compare January 10, 2023 17:43
@webkit-commit-queue
Copy link
Collaborator

Committed 258728@main (547312c): https://commits.webkit.org/258728@main

Reviewed commits have been landed. Closing PR #8461 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 547312c into WebKit:main Jan 10, 2023
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Page Loading For bugs in page loading, including handling of network callbacks.
Projects
None yet
4 participants