Skip to content

Fix handling of partial PDUs when CRC is invalid#248

Merged
argilo merged 1 commit into
theori-io:masterfrom
argilo:fix-partial-pdu
Sep 7, 2020
Merged

Fix handling of partial PDUs when CRC is invalid#248
argilo merged 1 commit into
theori-io:masterfrom
argilo:fix-partial-pdu

Conversation

@argilo
Copy link
Copy Markdown
Collaborator

@argilo argilo commented Sep 6, 2020

As noted in #245 (comment), partial PDUs are not handled correctly if one of the pieces has an invalid CRC. To correct this problem, I've done the following:

  • remove the continue that was cutting the loop iteration short in the event of an invalid CRC
  • add CRC checks around the steps that need to be skipped when the CRC is invalid
  • always clear the "last" partial PDU (by resetting pdu_idx to zero) after processing the "first" partial PDU

@argilo argilo requested a review from awesie September 6, 2020 14:31
@argilo argilo merged commit 564e8bd into theori-io:master Sep 7, 2020
@argilo argilo deleted the fix-partial-pdu branch September 7, 2020 01:41
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