Commit 0caef9f
committed
vp8: reset above_context in init_encode_frame_mb_context
When encoding multiple frames with VP8_TUNE_SSIM,
xd->above_context was not reset during frame context
initialization. This caused xd->above_context to retain
an out-of-bounds pointer from the end of the previous
frame's macroblock row traversal, leading to a heap buffer
overflow in vp8_optimize_mby() during build_activity_map().
Unittest added.
Bug: 550179428
Change-Id: I3b33fc3e6d1670c2e5e7952508c9097b48ecf0cf1 parent ac888d6 commit 0caef9f
2 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1085 | 1112 | | |
1086 | 1113 | | |
1087 | 1114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| 616 | + | |
616 | 617 | | |
617 | 618 | | |
618 | 619 | | |
| |||
0 commit comments