[sanitizer] Check kArgVMax in SymbolizerProcess::GetArgV

This commit is contained in:
Vitaly Buka 2021-12-23 11:02:56 -08:00
parent 3e52096809
commit 9fe0d67c9a
3 changed files with 3 additions and 0 deletions

View File

@ -281,6 +281,7 @@ class LLVMSymbolizerProcess final : public SymbolizerProcess {
argv[i++] = inline_flag;
argv[i++] = kSymbolizerArch;
argv[i++] = nullptr;
CHECK_LE(i, kArgVMax);
}
};

View File

@ -91,6 +91,7 @@ class AtosSymbolizerProcess final : public SymbolizerProcess {
argv[i++] = "-d";
}
argv[i++] = nullptr;
CHECK_LE(i, kArgVMax);
}
char pid_str_[16];

View File

@ -218,6 +218,7 @@ class Addr2LineProcess final : public SymbolizerProcess {
argv[i++] = "-Cfe";
argv[i++] = module_name_;
argv[i++] = nullptr;
CHECK_LE(i, kArgVMax);
}
bool ReachedEndOfOutput(const char *buffer, uptr length) const override;