We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83f9a31 commit fd64338Copy full SHA for fd64338
readium/lcp/src/main/java/org/readium/r2/lcp/LcpDecryptor.kt
@@ -206,6 +206,7 @@ internal class CbcLcpResource(
206
// Have we got all requested data with the extra block or less?
207
val dataIncludesBuiltinPadding = encryptedData.size < encryptedRangeSize
208
209
+ // We might not have got all data requested because range.last is allowed to be out of bounds.
210
check(encryptedData.size <= encryptedRangeSize)
211
val missingEndSize = encryptedRangeSize - encryptedData.size
212
0 commit comments