mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user