Commit 634598f
committed
Guard Windows absolute-path check with explicit length check
The drive-letter branch indexed out[1] and out[2] relying on
short-circuit evaluation of NUL-termination. Add an explicit
outSz >= 3 length check before the indexing to avoid any potential
out-of-bounds read that ASAN/UBSAN could flag.1 parent 372ea2a commit 634598f
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
1052 | | - | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1053 | 1055 | | |
1054 | 1056 | | |
1055 | 1057 | | |
1056 | | - | |
| 1058 | + | |
| 1059 | + | |
1057 | 1060 | | |
1058 | 1061 | | |
1059 | 1062 | | |
| |||
0 commit comments