Allow one byte data for the value of configuration
Minimum length of byte array value is 4.
Test: compile
Bug: 70816444
Change-Id: I813995df25d5861da8dca9010d41de501e040c18
diff --git a/utils/config.cc b/utils/config.cc
index 7c643b0..69b536e 100644
--- a/utils/config.cc
+++ b/utils/config.cc
@@ -67,7 +67,7 @@
}
if (in.length() > 1 && in[0] == '{' && in[in.length() - 1] == '}') {
- CHECK(in.length() > 4); // Needs at least one byte
+ CHECK(in.length() >= 4); // Needs at least one byte
type_ = BYTES;
return parseBytesString(in.substr(1, in.length() - 2), value_bytes_);
}