Commit a7f1786
committed
fix: replace deprecated NSKeyedArchiver/NSKeyedUnarchiver APIs with modern equivalents
The deprecated `+[NSKeyedUnarchiver unarchiveObjectWithData:]` and
`+[NSKeyedArchiver archivedDataWithRootObject:]` methods are flagged as
unsafe by security scanners (CWE-676). Replace them with instance-based
`NSKeyedUnarchiver` and `archivedDataWithRootObject:requiringSecureCoding:error:`
which are available since iOS 11.0 (the SDK minimum deployment target).
Resolves #9191 parent 28f7907 commit a7f1786
1 file changed
Lines changed: 11 additions & 4 deletions
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
161 | 167 | | |
162 | | - | |
| 168 | + | |
| 169 | + | |
163 | 170 | | |
164 | 171 | | |
165 | 172 | | |
| |||
0 commit comments