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

Commit d00b8598 authored by ramindani's avatar ramindani Committed by Ram Indani
Browse files

VTS add length is not zero check for executeSetClientTarget

Test: atest VtsHalGraphicsComposerV2_1TargetTest
BUG: 252764410
Change-Id: Icd15f6e7bfdd7b3e3d0d4b407195258d4171c560
(cherry picked from commit 708d49cf)
Merged-In: Icd15f6e7bfdd7b3e3d0d4b407195258d4171c560
parent 7a83695d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }