forked from OSchip/llvm-project
[sanitizer] Check kArgVMax in SymbolizerProcess::GetArgV
This commit is contained in:
parent
3e52096809
commit
9fe0d67c9a
|
@ -281,6 +281,7 @@ class LLVMSymbolizerProcess final : public SymbolizerProcess {
|
|||
argv[i++] = inline_flag;
|
||||
argv[i++] = kSymbolizerArch;
|
||||
argv[i++] = nullptr;
|
||||
CHECK_LE(i, kArgVMax);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -91,6 +91,7 @@ class AtosSymbolizerProcess final : public SymbolizerProcess {
|
|||
argv[i++] = "-d";
|
||||
}
|
||||
argv[i++] = nullptr;
|
||||
CHECK_LE(i, kArgVMax);
|
||||
}
|
||||
|
||||
char pid_str_[16];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue