-
Notifications
You must be signed in to change notification settings - Fork 524
fix: Teletext decoder panic on malformed BCD data #1992
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: master
Are you sure you want to change the base?
fix: Teletext decoder panic on malformed BCD data #1992
Conversation
CCExtractor CI platform finished running the test files on linux. Below is a summary of the test results, when compared to test for commit 477307e...:
Your PR breaks these cases:
Congratulations: Merging this PR would fix the following tests:
It seems that not all tests were passed completely. This is an indication that the output of some files is not as expected (but might be according to you). Check the result page for more info. |
CCExtractor CI platform finished running the test files on windows. Below is a summary of the test results, when compared to test for commit 477307e...:
Your PR breaks these cases:
It seems that not all tests were passed completely. This is an indication that the output of some files is not as expected (but might be according to you). Check the result page for more info. |
|
How do you know those defaults are correct? |
|
@cfsmp3 If you think we should revisit the defaults for correctness or spec compliance, I can add a comment in the code and make them configurable, but for safety and continuity, they mirror the prior behavior |
|
@cfsmp3 Test: test_malformed_bcd_teletext_bug() Changes needed to run the test: Wrapped timestamp 0 as time::units::Timestamp { millis: 0 } to match the expected type. Result: |
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Description
This PR fixes a crash in the Teletext decoder caused by unwrap() on malformed BCD data.
Although PR #1991 addressed a related issue in the Rust word file parser for #1990, some edge cases in the Teletext decoder were left unhandled. This PR fixes those remaining cases.
Changes made
Context
Fixes #1990
Verification