This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 7b57891
committed
[[ Bug 22586 ]] Fix buffer overrun in native split
This patch fixes a buffer overrun in the native split codepath where
adding the key length to the ptr used to extract the element could result
in a start pointer higher than the end ptr. Subtracting from the end ptr to
find the length resulted in a very high length due to unsignedness thus causing
invalid access.1 parent df34a44 commit 7b57891
File tree
3 files changed
+14
-2
lines changed- docs/notes
- libfoundation/src
- tests/lcs/core/array
3 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5263 | 5263 | | |
5264 | 5264 | | |
5265 | 5265 | | |
5266 | | - | |
| 5266 | + | |
5267 | 5267 | | |
5268 | | - | |
| 5268 | + | |
5269 | 5269 | | |
5270 | 5270 | | |
5271 | 5271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
0 commit comments