Skip to content

Commit f5dcc2e

Browse files
committed
libertiff.hpp: avoid unsigned-integer-overflow (ossfuzz 376100380)
1 parent fb36ab7 commit f5dcc2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/libertiff/libertiff.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ class Image
14331433

14341434
entry.invalid_value_offset =
14351435
(byteCount > THRESHOLD_CHECK_FILE_SIZE &&
1436-
(entry.value_offset >= m_rc->size() ||
1436+
(m_rc->size() < byteCount ||
14371437
entry.value_offset > m_rc->size() - byteCount));
14381438
}
14391439
}

0 commit comments

Comments
 (0)