Commit 312d58e
Add cookie URL validation check to prevent crash (#55787)
Summary:
Pull Request resolved: #55787
Add defensive check to validate components.URL before using it to load cookies.
If NSURLComponents fails to parse the URL or returns nil for components.URL, this prevents passing nil to cookiesForURL which could cause issues in the network stack.
Changelog: [Internal]
Reviewed By: javache
Differential Revision: D94375528
fbshipit-source-id: 499b9ed9c7661b43819b0a2b15edd62775d380f71 parent d5b2827 commit 312d58e
1 file changed
Lines changed: 6 additions & 2 deletions
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
0 commit comments