diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2019-10-22 16:01:37 -0700 |
---|---|---|
committer | Vasyl Gello <vasek.gello@gmail.com> | 2020-01-07 17:18:06 +0000 |
commit | 9e035c8d16bae3048064b7c1de2b55744742373f (patch) | |
tree | 2ad715a446b61c96f2954170b516e75739257ce2 /MODULE_LICENSE_APACHE2 | |
parent | c25f0508b5875a9dc1b5f24f5bed2e147f2977de (diff) | |
download | android_external_libavc-9e035c8d16bae3048064b7c1de2b55744742373f.tar.gz android_external_libavc-9e035c8d16bae3048064b7c1de2b55744742373f.tar.bz2 android_external_libavc-9e035c8d16bae3048064b7c1de2b55744742373f.zip |
decoder: Move initialization of dbp_mgr entries to init_decoder()
Earlier these were only initialized during static buffer allocations.
Initializing them in init_decoder() will ensure that these get
initialized to default values during reset() as well. Without this,
in some error cases, there is a possibility of heap-use-after free,
when resolution changes and these pointers point to memory that is freed
Bug: 142602711
Test: poc in bug
Change-Id: Ie39fee0eca56bf32cdc558099bf167d05eb89620
(cherry picked from commit 01da7b5a52a76aee615b4e32eeceb4887d3662f0)
Diffstat (limited to 'MODULE_LICENSE_APACHE2')
0 files changed, 0 insertions, 0 deletions