Skip to content
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

New checker: gnome librsvg #1533

Merged
merged 2 commits into from
Feb 16, 2022
Merged

New checker: gnome librsvg #1533

merged 2 commits into from
Feb 16, 2022

Conversation

yashugarg
Copy link
Contributor

fixes #1494

@yashugarg
Copy link
Contributor Author

yashugarg commented Jan 14, 2022

I didn't see #1530 was already open, I can close this PR if needed

CC: @terriko @BreadGenie

Copy link
Contributor

@BreadGenie BreadGenie left a comment

Choose a reason for hiding this comment

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

LGTM!

Tried it out with an apk file too and it works just fine.

@yashugarg you can discuss with the PR author on who would be submitting the PR. It seems like their PR is not complete yet.



class LibrsvgChecker(Checker):
CONTAINS_PATTERNS = []
Copy link
Contributor

Choose a reason for hiding this comment

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

You can add some unique patterns found in the executable here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @BreadGenie,
I did try to put Contains_Patterns, but neither the helper_script, nor the "strings" command gives any useable patterns.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's fine. BTW you might want to merge main or rebase to pass all the tests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The tests work now!

README.md Outdated Show resolved Hide resolved
@terriko
Copy link
Contributor

terriko commented Feb 9, 2022

Trying out the new rebase branch option, so CI is re-running now.

@codecov-commenter
Copy link

Codecov Report

Merging #1533 (e7793c4) into main (62ae407) will increase coverage by 2.14%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1533      +/-   ##
==========================================
+ Coverage   80.36%   82.50%   +2.14%     
==========================================
  Files         281      283       +2     
  Lines        5581     5597      +16     
  Branches      913      917       +4     
==========================================
+ Hits         4485     4618     +133     
+ Misses        897      784     -113     
+ Partials      199      195       -4     
Flag Coverage Δ
longtests 82.50% <72.72%> (+2.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cve_bin_tool/checkers/__init__.py 95.45% <ø> (ø)
cve_bin_tool/cli.py 73.00% <33.33%> (+1.58%) ⬆️
cve_bin_tool/version_scanner.py 57.84% <50.00%> (+1.40%) ⬆️
test/test_checkers.py 93.54% <66.66%> (-3.07%) ⬇️
cve_bin_tool/checkers/librsvg.py 100.00% <100.00%> (ø)
test/test_data/librsvg.py 100.00% <100.00%> (ø)
cve_bin_tool/extractor.py 65.21% <0.00%> (+1.24%) ⬆️
cve_bin_tool/checkers/glibc.py 100.00% <0.00%> (+4.16%) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d95852...e7793c4. Read the comment docs.

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

Looking good! Thanks for doing this, and sorry it's taken a while to get merged!

@terriko terriko merged commit ab07fb9 into intel:main Feb 16, 2022
terriko pushed a commit to terriko/cve-bin-tool that referenced this pull request Mar 9, 2022
@yashugarg yashugarg deleted the librsvg branch July 5, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New checker request: gnome librsvg
4 participants