-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ChecksumChannel: fix int overrun bug on filling up gaps > Integer.MAX…
…_VALUE ChecksumChannel used int for summing up the number of total bytes read back or filled up with zeros. If those gaps were greater than 2^31 the variable would overflow and cause an NegativePosition Exception in the reading back case and a infinite loop in the filling zeros case. This patch fixes this by changing the vars to long instead. Unit tests are included, but @ignored, because they take a long time. Ticket: Acked-by: Target: trunk Request: 2.12 Require-book: no Require-notes: no
- Loading branch information
Karsten Schwank
committed
May 5, 2015
1 parent
8a4efa1
commit 351ed7f
Showing
2 changed files
with
41 additions
and
5 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