-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust call analysis #452
Rust call analysis #452
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! can you please add a simple test as well?
func cleanRustFunctionSymbols(val string) string { | ||
// Used to remove generics from functions and types as they are not included in function calls | ||
// in advisories: | ||
// E.g.: `smallvec::SmallVec<A>::new` => `smallvec::SmallVec::new` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should start a discussion here if the data can be formatted in a more convenient way to begin with?
Regex seems potentially very error prone here.
d8742f1
to
b490584
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to see a sample SCA output for the docs.
docs/output.md
Outdated
``` | ||
|
||
**Rendered:** | ||
|
||
| OSV URL | CVSS | Ecosystem | Package | Version | Source | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So when I saw that there were changes in the output file, I was hoping to see output from the SCAs. How does the Go & Rust output look different from the standard ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some examples and JSON comments explaining the output more thoroughly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
As discussed offline, let's raise some data formatting (re the remaining open comment on the PR around generics) and consistency issues (e.g. macros) with the upstream RustSec folks. It would be nice to show osv-scanner as an example tool that can leverage the DB to its full extent.
Support rust for call analysis, the current version is fully working for any rust binary or library that can be built with
cargo build
Part of #476
TODO:
Limitations: #464