-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix an unintended variable reuse in UdpEncryption object (#502)
Summary: Pull Request resolved: #502 `indexOffset_` is meant to record how much data has been processed. And my data and peer's data should be recorded separately. However the original implementation mistakenly used the same variable and the unit test failed to catch that. This diff fixes the bug and adds necessary tests. Reviewed By: haochenuw Differential Revision: D43746711 fbshipit-source-id: 94abdfdf4bd6890c32c7ce5019889a14e03fe3ab
- Loading branch information
1 parent
353a000
commit f2bae56
Showing
3 changed files
with
97 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters