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

Safety critical bounds checking is off-by-one in sgrproj_box_ab_internal #3168

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

CodesInChaos
Copy link
Contributor

Fixes the main part of #3161

I believe the potential for integer overflows still makes it unsound though.

@codecov
Copy link

codecov bot commented Mar 19, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (92c05bd) 86.78% compared to head (c95cd61) 86.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3168      +/-   ##
==========================================
+ Coverage   86.78%   86.80%   +0.01%     
==========================================
  Files          84       84              
  Lines       33308    33308              
==========================================
+ Hits        28908    28913       +5     
+ Misses       4400     4395       -5     
Impacted Files Coverage Δ
src/lrf.rs 75.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@shssoichiro shssoichiro left a comment

Choose a reason for hiding this comment

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

Thanks for the find + fix!

@shssoichiro
Copy link
Collaborator

Re. integer overflows do you mean if the strides overflow usize::max? I think that could never happen in real practice, AV1 as a codec does not support encoding videos that large.

@shssoichiro shssoichiro merged commit 2b7b31e into xiph:master Apr 2, 2023
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.

2 participants