Merge "WriterTest: Fix bounds check"

gugelfrei
Treehugger Robot 5 years ago committed by Gerrit Code Review
commit 6409c17eff

@ -234,7 +234,7 @@ int32_t WriterTest::addWriterSource(bool isAudio, configFormat params) {
void getFileDetails(string &inputFilePath, string &info, configFormat &params, bool &isAudio,
int32_t streamIndex = 0) {
if (streamIndex > sizeof(kInputData) / sizeof(kInputData[0])) {
if (streamIndex >= sizeof(kInputData) / sizeof(kInputData[0])) {
return;
}
inputFilePath += kInputData[streamIndex].inputFile;

Loading…
Cancel
Save