Commit bdf1882
Add cookie URL validation check to prevent crash (facebook#55787)
Summary:
Pull Request resolved: facebook#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: D943755281 parent 8818c8c commit bdf1882
File tree
1 file changed
+6
-2
lines changed- packages/react-native/React/CoreModules
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| |||
0 commit comments