Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 635bc8f9 authored by Dan Albert's avatar Dan Albert
Browse files

Fix comparison sign warnings.

Change-Id: I6f2e2b03b968a569b122004b4803c5d17fccfb12
parent 9ba21b94
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2018,10 +2018,10 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
            *offset += chunk_size;

            if (mFileMetaData != NULL) {
                ALOGV("chunk_data_size = %lld and data_offset = %lld",
                        (long long)chunk_data_size, (long long)data_offset);
                ALOGV("chunk_data_size = %" PRId64 " and data_offset = %" PRId64,
                      chunk_data_size, data_offset);

                if (chunk_data_size >= SIZE_MAX - 1) {
                if (chunk_data_size < 0 || static_cast<uint64_t>(chunk_data_size) >= SIZE_MAX - 1) {
                    return ERROR_MALFORMED;
                }
                sp<ABuffer> buffer = new ABuffer(chunk_data_size + 1);