Commit 15b5855
committed
json: Verify JSON config file starts with an array
Do not blindly assume the file starts with an array. This avoids a
crash in json-c.
Signed-off-by: Daniel Wagner <[email protected]>1 parent 8f5d708 commit 15b5855
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
210 | 211 | | |
211 | 212 | | |
212 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
| |||
218 | 224 | | |
219 | 225 | | |
220 | 226 | | |
221 | | - | |
222 | 227 | | |
223 | 228 | | |
224 | 229 | | |
| |||
0 commit comments