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

Commit 504d108e authored by Dan Austin's avatar Dan Austin Committed by Android Git Automerger
Browse files

am 2022f6f8: am bd92424d: am dc897061: Merge "Fixed comparison so that both...

am 2022f6f8: am bd92424d: am dc897061: Merge "Fixed comparison so that both operands are treated as 64 bit."

* commit '2022f6f8':
  Fixed comparison so that both operands are treated as 64 bit.
parents ce497dab 2022f6f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ status_t SampleTable::setSampleToChunkParams(
    for (uint32_t i = 0; i < mNumSampleToChunkOffsets; ++i) {
        uint8_t buffer[12];

        if (((SIZE_MAX / 12) - 8 - i) < mSampleToChunkOffset) {
        if ((off64_t)((SIZE_MAX / 12) - 8 - i) < mSampleToChunkOffset) {
            return ERROR_MALFORMED;
        }