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

Commit 225eec8d authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am f9d4ba77: am 69aae36e: Merge "stagefright aacenc: Safeguard against overwriting bits"

* commit 'f9d4ba77':
  stagefright aacenc: Safeguard against overwriting bits
parents ba62da99 f9d4ba77
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -152,6 +152,7 @@ Word16 WriteBits(HANDLE_BIT_BUF hBitBuf,


  wBitPos = hBitBuf->wBitPos;
  wBitPos = hBitBuf->wBitPos;
  wBitPos += noBitsToWrite;
  wBitPos += noBitsToWrite;
  writeValue &= ~(0xffffffff << noBitsToWrite); // Mask out everything except the lowest noBitsToWrite bits
  writeValue <<= 32 - wBitPos;
  writeValue <<= 32 - wBitPos;
  writeValue |= hBitBuf->cache;
  writeValue |= hBitBuf->cache;