Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5115f1c7 authored by Iliyan Malchev's avatar Iliyan Malchev Committed by android-build-merger
Browse files

Merge "init: account for "init.svc." prefix in IsValidName" am: 8cf0bd75 am: 6b03c273

am: 68a9f5a1

Change-Id: Ia56ffdfc942ab4bb07a3b0856804fff3ccbc73b0
parents bae5e2f1 68a9f5a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {