Skip to content

Commit

Permalink
Merge pull request #4962 from ygorshenin/fix-ub-in-search-tests
Browse files Browse the repository at this point in the history
[search] Fixed UB in search_tests.
  • Loading branch information
mpimenov authored Dec 12, 2016
2 parents 4cddc4c + 775af11 commit 81cc2ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion search/search_tests/string_intersection_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ struct TestData
va_list ap;
va_start(ap, resCount);
for(int i = 0; i < resCount; i++)
AddResult(va_arg(ap, int), va_arg(ap, int));
{
uint16_t const pos = va_arg(ap, int);
uint16_t const len = va_arg(ap, int);
AddResult(pos, len);
}
va_end(ap);
}

Expand Down

0 comments on commit 81cc2ed

Please sign in to comment.