summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Ram Mohan <ram.mohan@ittiam.com> 2023-06-20 16:45:09 +0530
committer Dichen Zhang <dichenzhang@google.com> 2023-08-04 01:08:19 +0000
commit570ab082fb0c6d0d537b4d8b65eb8d410745c7a4 (patch)
tree003f988d2260041ec93e1e711998fdd738d9bb57 /libs/gui/ConsumerBase.cpp
parente8bb4c51fa65943f00cbe7d94e628439e7e0f227 (diff)
ultrahdr: make decodeJPEGR behaviour synonymous with getJPEGRInfo
For a given image, if getJPEGRInfo returns with error, then its best to ensure decodeJPEGR exhibits identical behaviour. Currently decodeJPEGR is decoding primary image directly. If getJPEGRInfo fails with error, then it is not possible for client to allocate space for dest for decodeJPEGR. Ignoring the error, if the client allocates some space and calls decodeJPEGR, its possible we see SIGSEGV issues. Bug: 286208319 Test: ./ultrahdr_dec_fuzzer Change-Id: I04f70a6bf895efce0c0f0ec62ca0fcda2f78acbc Merged-In: I04f70a6bf895efce0c0f0ec62ca0fcda2f78acbc (cherry picked from commit cdc0f1fad0aa6e73ee7d9acb513fe282717363e4)
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions