-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msg-filter: abstract out notes about builtin models
... so that semantically equal findings are matched with each other Resolves: https://issues.redhat.com/browse/OSH-700 Closes: #189
- Loading branch information
Showing
10 changed files
with
229 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Error: FORWARD_NULL (CWE-476): | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:266:2: path: Condition "!args", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:271:2: path: Condition "!tmp_cmdline", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:281:2: path: Condition "*args", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:284:3: path: Condition "!val", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:287:3: path: Condition "!strcmp(param, "memmap")", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:289:3: path: Falling through to end of if statement. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:305:2: path: Jumping back to the beginning of the loop. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:281:2: path: Condition "*args", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:284:3: path: Condition "!val", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:284:3: var_compare_op: Comparing "val" to null implies that "val" might be null. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:284:3: path: Condition "strcmp(param, "--") == 0", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:287:3: path: Condition "!strcmp(param, "memmap")", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:289:10: path: Condition "1", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:289:10: path: Condition "strstr(param, "hugepages")", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:291:10: path: Condition "!strcmp(param, "mem")", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:292:4: alias_transfer: Assigning: "p" = "val". | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:294:4: var_deref_model: Passing null pointer "p" to "strcmp", which dereferences it. [Note: The source code implementation of the function has been overridden by a builtin model.] | ||
# 292| char *p = val; | ||
# 293| | ||
# 294|-> if (!strcmp(p, "nopentium")) | ||
# 295| continue; | ||
# 296| mem_size = memparse(p, &p); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Error: FORWARD_NULL (CWE-476): | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:266:2: path: Condition "!args", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:271:2: path: Condition "!tmp_cmdline", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:281:2: path: Condition "*args", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:284:3: path: Condition "!val", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:287:3: path: Condition "!strcmp(param, "memmap")", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:289:3: path: Falling through to end of if statement. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:305:2: path: Jumping back to the beginning of the loop. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:281:2: path: Condition "*args", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:284:3: path: Condition "!val", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:284:3: var_compare_op: Comparing "val" to null implies that "val" might be null. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:284:3: path: Condition "strcmp(param, "--") == 0", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:287:3: path: Condition "!strcmp(param, "memmap")", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:289:10: path: Condition "1", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:289:10: path: Condition "strstr(param, "hugepages")", taking false branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:291:10: path: Condition "!strcmp(param, "mem")", taking true branch. | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:292:4: alias_transfer: Assigning: "p" = "val". | ||
kernel-999/arch/x86/boot/compressed/kaslr.c:294:4: var_deref_model: Passing null pointer "p" to "strcmp", which dereferences it. | ||
# 292| char *p = val; | ||
# 293| | ||
# 294|-> if (!strcmp(p, "nopentium")) | ||
# 295| continue; | ||
# 296| mem_size = memparse(p, &p); |
Oops, something went wrong.