commit | 29a78a11844fc027fa44be7f8bd8dc1cf8bf89f6 | [log] [tgz] |
---|---|---|
author | Venkatarama Avadhani <venkatarama.avadhani@ittiam.com> | Wed Aug 09 12:11:38 2017 +0530 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Tue Nov 28 03:27:44 2017 +0000 |
tree | 6c8040e643be5b28cbf94c023d41026d4e6a8e2c | |
parent | 33bcd16994e25e4e8b3729e3f938b3b93e6fbb01 [diff] |
Adding Error Check for f_code Parameters In MPEG1, the valid range for the forward and backward f_code parameters is [1, 7]. Adding a check to enforce this. Without the check, the value could be 0. We read (f_code - 1) bits from the stream and reading a negative number of bits from the stream is undefined. Bug: 64550583 Test: monitored temp ALOGD() output Change-Id: Ia452cd43a28e9d566401f515947164635361782f (cherry picked from commit 71d734b83d72e8a59f73f1230982da97615d2689)