Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
b81a7f09
Commit
b81a7f09
authored
3 years ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Minor fixes in the taint domain following review.
parent
c767103a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/value/domains/taint_domain.ml
+6
-5
6 additions, 5 deletions
src/plugins/value/domains/taint_domain.ml
with
6 additions
and
5 deletions
src/plugins/value/domains/taint_domain.ml
+
6
−
5
View file @
b81a7f09
...
...
@@ -419,13 +419,13 @@ module TaintLogic = struct
|
false
,
Por
(
p1
,
p2
)
->
let
state
=
reduce_by_predicate
cvalue_env
state
p1
positive
in
reduce_by_predicate
cvalue_env
state
p2
positive
|
true
,
Por
(
p1
,
p2
)
|
false
,
Pand
(
p1
,
p2
)
->
|
true
,
Por
(
p1
,
p2
)
|
false
,
Pand
(
p1
,
p2
)
->
let
state1
=
reduce_by_predicate
cvalue_env
state
p1
positive
in
let
state2
=
reduce_by_predicate
cvalue_env
state
p2
positive
in
join
state1
state2
|
_
,
Pnot
p
->
reduce_by_predicate
cvalue_env
state
p
(
not
positive
)
|
_
,
Papp
(
{
l_var_info
=
{
lv_name
=
"
\\
tainted"
}}
,
_labels
,
[
arg
])
->
|
_
,
Papp
({
l_var_info
=
{
lv_name
=
"
\\
tainted"
}}
,
_labels
,
[
arg
])
->
reduce_by_taint_predicate
cvalue_env
state
arg
positive
|
_
->
state
...
...
@@ -440,7 +440,7 @@ module TaintLogic = struct
let
evaluate_predicate
cvalue_env
state
predicate
=
let
rec
evaluate
predicate
=
match
predicate
.
pred_content
with
|
Papp
(
{
l_var_info
=
{
lv_name
=
"
\\
tainted"
}}
,
_labels
,
[
arg
])
->
|
Papp
({
l_var_info
=
{
lv_name
=
"
\\
tainted"
}}
,
_labels
,
[
arg
])
->
evaluate_taint_predicate
cvalue_env
state
arg
|
Ptrue
->
True
|
Pfalse
->
False
...
...
@@ -489,7 +489,8 @@ module TaintLogic = struct
List
.
fold_left
taint_term
taint
terms
end
let
interpret_taint_logic
(
module
Abstract
:
Abstractions
.
S
)
:
(
module
Abstractions
.
S
)
=
let
interpret_taint_logic
(
module
Abstract
:
Abstractions
.
S
)
:
(
module
Abstractions
.
S
)
=
match
Abstract
.
Dom
.
get
Cvalue_domain
.
State
.
key
,
Abstract
.
Dom
.
get
key
with
|
None
,
_
|
_
,
None
->
(
module
Abstract
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment