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
rtrlib/rtr: Ensure shadow tables are only freed when initialized #204
Conversation
Codecov Report
@@ Coverage Diff @@
## master #204 +/- ##
=========================================
- Coverage 69.07% 68.8% -0.27%
=========================================
Files 15 15
Lines 2231 2247 +16
=========================================
+ Hits 1541 1546 +5
- Misses 690 701 +11 |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/RPKI-RTRLIBPR-57/ This is a comment from an automated CI system. Warnings Generated during build:Ubuntu 14.04 amd64: Successful with additional warningsDebian Package lintian failed for Ubuntu 14.04 amd64:
Ubuntu 16.04 arm8: Successful with additional warningsDebian Package lintian failed for Ubuntu 16.04 arm8:
Ubuntu 16.04 arm7: Successful with additional warningsDebian Package lintian failed for Ubuntu 16.04 arm7:
Ubuntu 18.04 amd64: Successful with additional warningsDebian Package lintian failed for Ubuntu 18.04 amd64:
Ubuntu 16.04 amd64: Successful with additional warningsDebian Package lintian failed for Ubuntu 16.04 amd64:
Ubuntu 16.04 i386: Successful with additional warningsDebian Package lintian failed for Ubuntu 16.04 i386:
|
|
From the Bug report: > If rtr_receive_pdu returns an error code, the execution flow is > redirected to the cleanup label. If ->is_resetting is now true (e.g., > because it was set by a CACHE_RESPONSE PDU processed by > rtr_handle_cache_response_pdu), pfx_table_free_without_notify and > spki_table_free_without_notify are executing multiple operations on this > uninitialized data. This patch ensures the cleanup code can check whether the shadow tables have been initialized and only frees them if they are.
That is embarrassing … Fixed. |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/RPKI-RTRLIBPR-60/ This is a comment from an automated CI system. Warnings Generated during build:Ubuntu 18.04 amd64: Successful with additional warningsDebian Package lintian failed for Ubuntu 18.04 amd64:
Ubuntu 16.04 arm7: Successful with additional warningsDebian Package lintian failed for Ubuntu 16.04 arm7:
Ubuntu 14.04 amd64: Successful with additional warningsDebian Package lintian failed for Ubuntu 14.04 amd64:
Ubuntu 16.04 arm8: Successful with additional warningsDebian Package lintian failed for Ubuntu 16.04 arm8:
Ubuntu 16.04 amd64: Successful with additional warningsDebian Package lintian failed for Ubuntu 16.04 amd64:
Ubuntu 16.04 i386: Successful with additional warningsDebian Package lintian failed for Ubuntu 16.04 i386:
|
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.
Looks good 👍
This patch ensures the cleanup code can check whether the shadow tables
have been initialized and only frees them if they are.
Fix #202