Commit 24f2767
committed
fix: out of bounds access in Dimensions::collapse()
Reworks Dimensions::collapse() to use iterators instead of dereferencing and using address-of operator.
In some cases it would dereference out of bounds, leading to UB.
Resolves: COMPMID-8060
Change-Id: Idba97c23e3fd4d776b62b02e4afc6a29e34aa72a
Signed-off-by: Dennis Wildmark <[email protected]>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/14654
Benchmark: Arm Jenkins <[email protected]>
Reviewed-by: Gunes Bayir <[email protected]>
Comments-Addressed: Arm Jenkins <[email protected]>
Tested-by: Arm Jenkins <[email protected]>1 parent d6b604d commit 24f2767
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | | - | |
| 173 | + | |
172 | 174 | | |
173 | | - | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
178 | | - | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
0 commit comments