Skip to content

Commit

Permalink
refactor CWE-416 check
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkelmann committed Sep 4, 2023
1 parent 2e11e84 commit 549248b
Show file tree
Hide file tree
Showing 3 changed files with 245 additions and 345 deletions.
4 changes: 2 additions & 2 deletions src/cwe_checker_lib/src/checkers/cwe_416/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl<'a> Context<'a> {
state: &mut State,
call_tid: &Tid,
call_params: impl IntoIterator<Item = &'b Arg>,
) -> Option<Vec<(AbstractIdentifier, Tid)>> {
) -> Option<Vec<(AbstractIdentifier, Vec<Tid>)>> {
let mut warnings = Vec::new();
for arg in call_params {
if let Some(arg_value) = self
Expand Down Expand Up @@ -174,7 +174,7 @@ impl<'a> Context<'a> {
name: &str,
description: String,
location: &Tid,
warning_causes: Vec<(AbstractIdentifier, Tid)>,
warning_causes: Vec<(AbstractIdentifier, Vec<Tid>)>,
root_function: &Tid,
) {
let cwe_warning = CweWarning {
Expand Down
Loading

0 comments on commit 549248b

Please sign in to comment.