Allow to decode LONG8 (u64)

TileOffsets and TileByteCounts have the LONG8 type on bigtiff.
This commit is contained in:
Farkal authored and GitHub committed 2020-08-10 15:32:47 +02:00
1 parent ea217dc238
commit ff874612ba
1 file changed
+3
+3
View File
@@ -343,6 +343,9 @@ impl Entry {
(Type::SRATIONAL, n) => self.decode_offset(n, bo, limits, decoder, |decoder| { (Type::SRATIONAL, n) => self.decode_offset(n, bo, limits, decoder, |decoder| {
Ok(SRational(decoder.read_slong()?, decoder.read_slong()?)) Ok(SRational(decoder.read_slong()?, decoder.read_slong()?))
}), }),
(Type::LONG8, n) => self.decode_offset(n, bo, limits, decoder, |decoder| {
Ok(UnsignedBig(decoder.read_long8()?))
}),
(Type::ASCII, n) => { (Type::ASCII, n) => {
let n = usize::try_from(n)?; let n = usize::try_from(n)?;
if n > limits.decoding_buffer_size { if n > limits.decoding_buffer_size {