Skip to content

Commit c7de873

Browse files
committed
Rust: Update the libc models.
1 parent a1e9a4e commit c7de873

File tree

5 files changed

+141
-96
lines changed

5 files changed

+141
-96
lines changed

rust/ql/lib/codeql/rust/frameworks/libc.model.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ extensions:
33
pack: codeql/rust-all
44
extensible: sourceModel
55
data:
6-
- ["libc::free", "Argument[0]", "pointer-invalidate", "manual"]
6+
- ["libc::unix::free", "Argument[0]", "pointer-invalidate", "manual"]
7+
- ["libc::windows::free", "Argument[0]", "pointer-invalidate", "manual"]
78
- addsTo:
89
pack: codeql/rust-all
910
extensible: sinkModel
1011
data:
11-
- ["libc::malloc", "Argument[0]", "alloc-size", "manual"]
12-
- ["libc::aligned_alloc", "Argument[1]", "alloc-size", "manual"]
13-
- ["libc::calloc", "Argument[0,1]", "alloc-size", "manual"]
14-
- ["libc::realloc", "Argument[1]", "alloc-size", "manual"]
12+
- ["libc::unix::malloc", "Argument[0]", "alloc-size", "manual"]
13+
- ["libc::windows::malloc", "Argument[0]", "alloc-size", "manual"]
14+
- ["libc::unix::aligned_alloc", "Argument[1]", "alloc-size", "manual"]
15+
- ["libc::windows::aligned_alloc", "Argument[1]", "alloc-size", "manual"]
16+
- ["libc::unix::calloc", "Argument[0,1]", "alloc-size", "manual"]
17+
- ["libc::windows::calloc", "Argument[0,1]", "alloc-size", "manual"]
18+
- ["libc::unix::realloc", "Argument[1]", "alloc-size", "manual"]
19+
- ["libc::windows::realloc", "Argument[1]", "alloc-size", "manual"]

0 commit comments

Comments
 (0)