-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix: Add covariance magnitude (Issue #5611) #5683
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
base: main
Are you sure you want to change the base?
Fix: Add covariance magnitude (Issue #5611) #5683
Conversation
4114f9f to
e060dde
Compare
Signed-off-by: ubuntu <[email protected]>
Signed-off-by: ubuntu <[email protected]>
Signed-off-by: ubuntu <[email protected]>
Signed-off-by: ubuntu <[email protected]>
e060dde to
761c40e
Compare
| } | ||
|
|
||
| const double MAX_COVARIANCE = 1e6; | ||
| const double MIN_COVARIANCE = 1e-4; |
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.
A zero-value is possible / valid
| if (!validateMsg(element)) {return false;} | ||
|
|
||
| if (std::abs(element) > MAX_COVARIANCE || std::abs(element) < MIN_COVARIANCE) { | ||
| // Reject extreme values (security: prevent DoS attacks) |
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.
How would this be a DoS? I think this should just mention checking for covar valid range
Co-authored-by: Steve Macenski <[email protected]> Signed-off-by: r0s4ngeles <[email protected]>
|
@r0s4ngeles, your PR has failed to build. Please check CI outputs and resolve issues. |
Basic Info
Description of contribution in a few bullet points
Description of documentation updates required from your changes
Description of how this change was tested
Future work that may be required in bullet points
For Maintainers:
backport-*.