Commit 45f3750
Use larger data type to avoid overflow
uint16_t was used to get scratch space offset. Largest value that can be
encoded for this type is 65536. Each scratch slot using HWord message is
32 bytes. So uint16_t usage is correct only up to 2048 HWord slots. When later sHWord slots are accessed, uint16_t goes OOB. This causes dependency check to become incorrect.
Fix is to use larger size (uint32_t) that can never go OOB.
(cherry picked from commit 10f146f)1 parent 47e7cc7 commit 45f3750
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
| 143 | + | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
| 150 | + | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
0 commit comments