commit | c6a9ca22189daeed10b170b7820e15f084790710 | [log] [tgz] |
---|---|---|
author | Srujan Vandrangi <srujan.vandrangi@ittiam.com> | Thu Jun 01 17:48:43 2023 +0000 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Wed Aug 23 21:22:30 2023 +0000 |
tree | fe58c9f4aae7bb73df5ec1a604cc4bbe8e2c2add | |
parent | d33677ac9e7ec4f9152cbfe28d04bd22e363f2e2 [diff] |
encoder: hevc encoder expects allocation returns zeroed memory earlier, hevc encoder memory allocation wrappers were not clearing the memory.it requires explicit calling of memset functions wherever required for memory management. this has been resolved since the memory reset happens with in the function call and returns the zeroed memory whenever it is called and does memory management efficiently. Bug: 275059745 Bug: 275060007 Bug: 275802472 Bug: oss-fuzz:57397, oss-fuzz:57398, oss-fuzz:57401 Test: hevc_enc_fuzzer (cherry picked from https://partner-android-review.googlesource.com/q/commit:545fd7bfd22d2894057caac2baa835a082f515fd) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a0b217f1c0b58547e6732e77cff6306e9b8c7e81) Merged-In: I76fa9371aac6ef5fca3923435e0010cf2f13db6f Change-Id: I76fa9371aac6ef5fca3923435e0010cf2f13db6f
Supports:
Use the following commands for building on the target machine
$ cd external/libhevc $ mkdir build $ cd build $ cmake .. $ make
$ cd external/libhevc $ mkdir build $ cd build $ CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" cmake .. $ make
Update 'CMAKE_C_COMPILER', 'CMAKE_CXX_COMPILER', 'CMAKE_C_COMPILER_AR', and 'CMAKE_CXX_COMPILER_AR' in CMAKE_TOOLCHAIN_FILE passed below
$ cd external/libhevc $ mkdir build $ cd build
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch64_toolchain.cmake $ make
$ cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch32_toolchain.cmake $ make