diff options
Diffstat (limited to 'tiffer.h')
-rw-r--r-- | tiffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -161,7 +161,7 @@ static bool tiffer_subifd( const struct tiffer *self, uint32_t offset, struct tiffer *subreader) { - if (self->end - self->begin < offset) + if (self->begin > self->end || self->end - self->begin < offset) return false; *subreader = *self; |