commit | 4b0880cd40cfdbf38e72f20d3a66f271d3f44f00 | [log] [tgz] |
---|---|---|
author | Vincent Rabaud <vrabaud@google.com> | Thu Sep 07 21:16:03 2023 +0200 |
committer | Luca Weiss <luca.weiss@fairphone.com> | Tue Sep 19 08:52:40 2023 +0200 |
tree | 7cd833e4d5560aee7e280c72c113f21e77055ed5 | |
parent | 5671f6f41494453756bbcdd1d86e2e8c1f56279f [diff] |
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: 299477569 Bug: chromium:1479274 Issue: FP3A13SEC-182 Issue: FP3-A13#249 Merged-In: I27c355c9970909fa5879e22e9f48b62acda386ef Merged-In: I31c36dbf3aa78d35ecf38706b50464fd3d375741 Merged-In: Ic46c8cc324b1b2afe46f3a0d9d9b5205d92b2e18 (cherry picked from commit 902bc9190331343b2017211debcec8d2ab87e17a) (cherry picked from commit 2af26267cdfcb63a88e5c74a85927a12d6ca1d76) Change-Id: Iaf8c74fe2b67925a577385be521791da42d47339