Merge "init: account for "init.svc." prefix in IsValidName" am: 8cf0bd75f7
am: 6b03c273b1
am: 68a9f5a14f
Change-Id: Ia56ffdfc942ab4bb07a3b0856804fff3ccbc73b0
This commit is contained in:
commit
5115f1c77a
|
@ -996,7 +996,7 @@ void ServiceParser::EndSection() {
|
|||
}
|
||||
|
||||
bool ServiceParser::IsValidName(const std::string& name) const {
|
||||
if (name.size() > 16) {
|
||||
if (name.size() > PROP_NAME_MAX - sizeof("init.svc.")) {
|
||||
return false;
|
||||
}
|
||||
for (const auto& c : name) {
|
||||
|
|
Loading…
Reference in New Issue