Commit 34cb040
authored
fix null pointer dereferences in intra channel and long term prediction (#234)
* fix null pointer dereference in intra channel prediction
Ensure "pred_stat" is not null in reconstruct_channel_pair(),
similar to the check in reconstruct_single_channel().
* fix null pointer dereference in long term prediction
Like ic_prediction(), lt_prediction() expects a "pred_stat" parameter
which is not null. Add checks to ensure that and add a new error message.1 parent 82fa08e commit 34cb040
3 files changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
1009 | | - | |
1010 | | - | |
| 1009 | + | |
| 1010 | + | |
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| |||
1036 | 1036 | | |
1037 | 1037 | | |
1038 | 1038 | | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
1039 | 1042 | | |
1040 | 1043 | | |
1041 | 1044 | | |
| |||
1240 | 1243 | | |
1241 | 1244 | | |
1242 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1243 | 1249 | | |
1244 | 1250 | | |
1245 | 1251 | | |
| |||
1278 | 1284 | | |
1279 | 1285 | | |
1280 | 1286 | | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1281 | 1290 | | |
1282 | 1291 | | |
1283 | 1292 | | |
| |||
0 commit comments