-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 269902 - [Curl] Add null check in WebSocketTaskCurl/NetworkDataTa…
…sk/NetworkSession https://bugs.webkit.org/show_bug.cgi?id=269902 Reviewed by Fujii Hironori. m_channel.session() referenced in WebSocketTaskCurl is defined as WeakPtr<NetworkSession>. Therefore, nullptr may be returned depending on the timing, so check for null before using them. Also, NetworkSession::networkStorageSession() referenced by NetworkDataTaskCurl and NetworkSession can return nullptr, so do a null check before using them. * Source/WebKit/NetworkProcess/curl/NetworkDataTaskCurl.cpp: * Source/WebKit/NetworkProcess/curl/NetworkSessionCurl.cpp: * Source/WebKit/NetworkProcess/curl/WebSocketTaskCurl.cpp: Canonical link: https://commits.webkit.org/275304@main
- Loading branch information
Showing
3 changed files
with
60 additions
and
43 deletions.
There are no files selected for viewing
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
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
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