Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cwe_checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
cwe_checker
Commits
a849f2ae
Unverified
Commit
a849f2ae
authored
Aug 28, 2020
by
Enkelmann
Committed by
GitHub
Aug 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set incident address to the jump and not the block for CWE476 (#80)
parent
b73c61c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cwe_476.ml
src/checkers/cwe_476.ml
+2
-2
No files found.
src/checkers/cwe_476.ml
View file @
a849f2ae
...
...
@@ -424,8 +424,8 @@ let print_hit (tid: Tid.t) ~(sub: Sub.t) ~(malloc_like_functions: String.t List.
|
Direct
(
call_tid
)
->
Option
.
is_some
(
List
.
find
malloc_like_functions
~
f
:
(
fun
fn_name
->
if
fn_name
=
(
Tid
.
name
call_tid
)
then
begin
let
address
=
Address_translation
.
translate_tid_to_assembler_address_string
tid
tid_map
in
let
tids
=
[
Address_translation
.
tid_to_string
tid
]
in
let
address
=
Address_translation
.
translate_tid_to_assembler_address_string
(
Term
.
tid
jmp
)
tid_map
in
let
tids
=
[
Address_translation
.
tid_to_string
(
Term
.
tid
jmp
)
]
in
let
description
=
sprintf
"(NULL Pointer Dereference) There is no check if the return value is NULL at %s (%s)."
address
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment