WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
269902
[Curl] Add null check in WebSocketTaskCurl/NetworkDataTask/NetworkSession
https://bugs.webkit.org/show_bug.cgi?id=269902
Summary
[Curl] Add null check in WebSocketTaskCurl/NetworkDataTask/NetworkSession
Kenji Shukuwa
Reported
2024-02-22 01:06:31 PST
m_channel.session() referenced in WebSocketTaskCurl is defined as WeakPtr<NetworkSession>. Depending on the timing, nullptr may be returned, so check for null. Also, NetworkSession::networkStorageSession() referenced by NetworkDataTaskCurl and NetworkSession can return nullptr, so do a null check before using them.
Attachments
Add attachment
proposed patch, testcase, etc.
Kenji Shukuwa
Comment 1
2024-02-22 01:13:17 PST
Pull request:
https://github.com/WebKit/WebKit/pull/24937
EWS
Comment 2
2024-02-25 19:03:26 PST
Committed
275304@main
(55dbfac13e1f): <
https://commits.webkit.org/275304@main
> Reviewed commits have been landed. Closing PR #24937 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2024-02-25 19:04:14 PST
<
rdar://problem/123610901
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug