Apply CVE-2023-4863 patch
- Duplicate of CVE-2023-5129
Fix OOB write in BuildHuffmanTable.
First, BuildHuffmanTable is called to check if the data is valid.
If it is and the table is not big enough, more memory is allocated.
This will make sure that valid (but unoptimized because of unbalanced
codes) streams are still decodable.
Bug: chromium:1479274
Change-Id: Idd09cecb53a0bef413c4f8f0ec4284faf4f4a042
(cherry picked from commit
bc3da941348bad7165fb159486aff465b5725384)