Bug 1939583. r=aosmond a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D233969
This commit is contained in:
Lee Salzman 2025-01-13 18:08:16 +00:00
parent 7ac5f6d340
commit adc035d41f

View file

@ -406,6 +406,7 @@ static bool Moz2DRenderCallback(const Range<const uint8_t> aBlob,
while (reader.pos < reader.len) {
size_t end = reader.ReadSize();
size_t extra_end = reader.ReadSize();
MOZ_RELEASE_ASSERT(offset <= end);
MOZ_RELEASE_ASSERT(extra_end >= end);
MOZ_RELEASE_ASSERT(extra_end < aBlob.length());