VTS add length is not zero check for executeSetClientTarget

Test: atest VtsHalGraphicsComposerV2_1TargetTest
BUG: 252764410
Change-Id: Icd15f6e7bfdd7b3e3d0d4b407195258d4171c560
(cherry picked from commit 708d49cfce)
Merged-In: Icd15f6e7bfdd7b3e3d0d4b407195258d4171c560
This commit is contained in:
ramindani
2023-03-25 06:03:29 -07:00
committed by Ram Indani
parent 7a83695d96
commit d00b8598bb

View File

@@ -207,7 +207,7 @@ class ComposerCommandEngine : protected CommandReaderBase {
bool executeSetClientTarget(uint16_t length) {
// 4 parameters followed by N rectangles
if ((length - 4) % 4 != 0) {
if (!length || (length - 4) % 4 != 0) {
return false;
}