commit | fb2f35ee208335d3ddce16e0d40b2bac2da8dc20 | [log] [tgz] |
---|---|---|
author | Li Huihui <lihuihui@eswincomputing.com> | Thu Mar 09 10:47:03 2023 +0800 |
committer | Li Huihui <lihuihui@eswincomputing.com> | Thu Mar 09 10:47:03 2023 +0800 |
tree | 91e791bdeb95ffaba9205ebbfb86e9e862f4b8f4 | |
parent | 47f9cb960a13863cfed3896755011c5579291973 [diff] |
Fix GLESv2_enc subtraction not protected The pixelRowSize smaller than width * bpp will result in a negative number of pixelRowSize - width * bpp. The rowSlack as an array size cannot be negative. Modify != to >, rowSlack will not be negative number. Test: mmm device/generic/goldfish-opengl, presubmit check. Change-Id: Ib4ebe679a12ef00802dc372f720c05f48474ef4e Signed-off-by: Li Huihui <lihuihui@eswincomputing.com>