Skip to content

Commit fd64338

Browse files
committed
Add comment
1 parent 83f9a31 commit fd64338

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

readium/lcp/src/main/java/org/readium/r2/lcp/LcpDecryptor.kt

+1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ internal class CbcLcpResource(
206206
// Have we got all requested data with the extra block or less?
207207
val dataIncludesBuiltinPadding = encryptedData.size < encryptedRangeSize
208208

209+
// We might not have got all data requested because range.last is allowed to be out of bounds.
209210
check(encryptedData.size <= encryptedRangeSize)
210211
val missingEndSize = encryptedRangeSize - encryptedData.size
211212

0 commit comments

Comments
 (0)