Allow to decode LONG8 (u64)
TileOffsets and TileByteCounts have the LONG8 type on bigtiff.
This commit is contained in:
1 parent
ea217dc238
commit
ff874612ba
1 file changed
+3
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user