summaryrefslogtreecommitdiff
path: root/libs/jpegrecoverymap/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Atneya Nair <atneya@google.com> 2022-05-24 16:50:12 -0400
committer Atneya Nair <atneya@google.com> 2022-05-24 19:29:17 -0400
commit3fd092e785f136390963e4f503b31bbd8a2cb997 (patch)
tree575b02de2a09324f6a53791cc6cf835520971d33 /libs/jpegrecoverymap/jpegencoderhelper.cpp
parent7863bb5118f2289d59c205f621bb437a66740c4f (diff)
Update MemoryHeapBase to avoid abort
MemoryHeapBase currently logs fatal on passing invalid flags. Since we control flags combinations as compile time constants within an enum, we can enforce that all the enum values pass valid flag combos in order to remove the fatal flag checks. This avoids aborts in fuzzers consuming the enum value. If a user passes MEMFD_ALLOW_SEALING_FLAG without FORCE_MEMFD set (not possible if using the enum values), then the flag is silently ignored. Test: atest binderUnitTest Bug: 224667194 Change-Id: Iab90c8b0926ac32f01bb1489bf954c136dd2953f
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions