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

Commit f1d26a39 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix out of bound error of IncidentService" into rvc-qpr-dev

parents 9bc3f695 e5927000
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -554,6 +554,10 @@ status_t IncidentService::command(FILE* in, FILE* out, FILE* err, Vector<String8
            return NO_ERROR;
        }
        if (!args[0].compare(String8("section"))) {
            if (argCount == 1) {
                fprintf(out, "Not enough arguments for section\n");
                return NO_ERROR;
            }
            int id = atoi(args[1]);
            int idx = 0;
            while (SECTION_LIST[idx] != NULL) {