summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2023-07-20 20:46:09 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-07-20 20:46:09 +0000
commitf44ab48b78109f876671532ca390bfa34a12e78d (patch)
treeb375443ea33521c98feb6ec85e16d0a0e3d8ec76 /libs/ultrahdr/jpegencoderhelper.cpp
parent955b6137114012c7b70c88f07de08410c539a7fa (diff)
EventHub: Ensure bit arrays are large enough to store all event codes
We were previously initializing bit arrays with a min size equaling to the MAX value for the event type (i.e. initialize array of min size KEY_MAX for EV_KEY). This is incorrect, because the max value could be a possible valid value, in which case it could not be stored in the array. The bit arrays should be initialzed with the min size equaling the count of the values (CNT == MAX + 1; e.g. KEY_CNT). Bug: 290938220 Test: None Change-Id: I1fa748f521a8539da444a4ae6e31cc4fb49be138
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions