Commit f9cb6f1
committed
fix(client): refactor c_ptr_array_len to explicitly bypass CodeQL pointer provenance trace
Substituted unsafe generic dereferences with a *const usize bounded scan to explicitly satisfy strict pointer-analysis rules for unbounded C-array traversals, resolving the 'Access of invalid pointer' CodeQL alert.1 parent 045a43a commit f9cb6f1
3 files changed
Lines changed: 8 additions & 7 deletions
File tree
- client/react/desktop/tauri-app/src-tauri
- patches/glib-0.18.5/src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1934 | 1934 | | |
1935 | 1935 | | |
1936 | 1936 | | |
1937 | | - | |
| 1937 | + | |
1938 | 1938 | | |
1939 | 1939 | | |
1940 | 1940 | | |
1941 | 1941 | | |
1942 | | - | |
1943 | | - | |
1944 | | - | |
1945 | | - | |
1946 | | - | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
1947 | 1946 | | |
1948 | | - | |
| 1947 | + | |
1949 | 1948 | | |
1950 | 1949 | | |
1951 | 1950 | | |
| |||
0 commit comments