mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "[VTS 2.3] Add length check before reading blob" into udc-dev
This commit is contained in:
@@ -82,7 +82,7 @@ class ComposerCommandEngine : public V2_2::hal::ComposerCommandEngine {
|
||||
|
||||
std::vector<IComposerClient::PerFrameMetadataBlob> metadata;
|
||||
|
||||
for (size_t i = 0; i < numBlobs; i++) {
|
||||
for (size_t i = 0; i < numBlobs && length >= 2; i++) {
|
||||
IComposerClient::PerFrameMetadataKey key =
|
||||
static_cast<IComposerClient::PerFrameMetadataKey>(readSigned());
|
||||
uint32_t blobSize = read();
|
||||
|
||||
Reference in New Issue
Block a user