Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,17 @@
branch = false
)
}

/**
* A barrier for uncontrolled allocation size flow into particular functions.
*/
private class ModelledBarrier extends Barrier {

Check warning

Code scanning / CodeQL

Misspelling Warning

This class name contains the non-US spelling 'modelled', which should instead be 'modeled'.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Copilot is right about this one.

ModelledBarrier() {
exists(MethodCall c |
c.getStaticTarget().getCanonicalPath() =
["<alloc::string::String>::split_off", "<alloc::vec::Vec>::split_off"] and
this.asExpr() = c.getAnArgument()
)
}
}
}
Loading