Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 570ab082 authored by Ram Mohan's avatar Ram Mohan Committed by Dichen Zhang
Browse files

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 cdc0f1fa)
parent e8bb4c51
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment