Loading init/service.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -996,7 +996,7 @@ void ServiceParser::EndSection() { } } bool ServiceParser::IsValidName(const std::string& name) const { bool ServiceParser::IsValidName(const std::string& name) const { if (name.size() > 16) { if (name.size() > PROP_NAME_MAX - sizeof("init.svc.")) { return false; return false; } } for (const auto& c : name) { for (const auto& c : name) { Loading Loading
init/service.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -996,7 +996,7 @@ void ServiceParser::EndSection() { } } bool ServiceParser::IsValidName(const std::string& name) const { bool ServiceParser::IsValidName(const std::string& name) const { if (name.size() > 16) { if (name.size() > PROP_NAME_MAX - sizeof("init.svc.")) { return false; return false; } } for (const auto& c : name) { for (const auto& c : name) { Loading