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
270b4d4e
Unverified
Commit
270b4d4e
authored
Sep 04, 2023
by
Enkelmann
Committed by
GitHub
Sep 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor CWE-416 check (#429)
parent
2e11e843
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
2 deletions
+5
-2
CHANGES.md
CHANGES.md
+2
-0
Cargo.toml
Cargo.toml
+1
-0
context.rs
src/cwe_checker_lib/src/checkers/cwe_416/context.rs
+2
-2
mod.rs
src/cwe_checker_lib/src/checkers/cwe_416/mod.rs
+0
-0
state.rs
src/cwe_checker_lib/src/checkers/cwe_416/state.rs
+0
-0
No files found.
CHANGES.md
View file @
270b4d4e
0.8-dev
0.8-dev
===
===
-
Improve logic and context information generation of CWE-416 (use-after-free) check (PRs #423, #429)
0.
7 (2023-06)
0.
7 (2023-06)
====
====
...
...
Cargo.toml
View file @
270b4d4e
[workspace]
[workspace]
members
=
[
"src/cwe_checker_lib"
,
"src/caller"
,
"test"
,
"src/installer"
]
members
=
[
"src/cwe_checker_lib"
,
"src/caller"
,
"test"
,
"src/installer"
]
resolver
=
"2"
src/cwe_checker_lib/src/checkers/cwe_416/context.rs
View file @
270b4d4e
...
@@ -76,7 +76,7 @@ impl<'a> Context<'a> {
...
@@ -76,7 +76,7 @@ impl<'a> Context<'a> {
state
:
&
mut
State
,
state
:
&
mut
State
,
call_tid
:
&
Tid
,
call_tid
:
&
Tid
,
call_params
:
impl
IntoIterator
<
Item
=
&
'b
Arg
>
,
call_params
:
impl
IntoIterator
<
Item
=
&
'b
Arg
>
,
)
->
Option
<
Vec
<
(
AbstractIdentifier
,
Tid
)
>>
{
)
->
Option
<
Vec
<
(
AbstractIdentifier
,
Vec
<
Tid
>
)
>>
{
let
mut
warnings
=
Vec
::
new
();
let
mut
warnings
=
Vec
::
new
();
for
arg
in
call_params
{
for
arg
in
call_params
{
if
let
Some
(
arg_value
)
=
self
if
let
Some
(
arg_value
)
=
self
...
@@ -174,7 +174,7 @@ impl<'a> Context<'a> {
...
@@ -174,7 +174,7 @@ impl<'a> Context<'a> {
name
:
&
str
,
name
:
&
str
,
description
:
String
,
description
:
String
,
location
:
&
Tid
,
location
:
&
Tid
,
warning_causes
:
Vec
<
(
AbstractIdentifier
,
Tid
)
>
,
warning_causes
:
Vec
<
(
AbstractIdentifier
,
Vec
<
Tid
>
)
>
,
root_function
:
&
Tid
,
root_function
:
&
Tid
,
)
{
)
{
let
cwe_warning
=
CweWarning
{
let
cwe_warning
=
CweWarning
{
...
...
src/cwe_checker_lib/src/checkers/cwe_416/mod.rs
View file @
270b4d4e
This diff is collapsed.
Click to expand it.
src/cwe_checker_lib/src/checkers/cwe_416/state.rs
View file @
270b4d4e
This diff is collapsed.
Click to expand it.
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