Files
android/libwvdrmengine/cdm/core/test
John W. Bruce 804c0d470c Rework Device File Matchers to Avoid Buffer Overflow
(This is a merge of http://go/wvgerrit/102104)

The device file unit tests use some custom matchers that were written
back when we didn't have C++11. Because gMock requires std::tuple to
pass a pointer AND a length to a matcher, these matchers had to estimate
the length of the file. This technically meant they were causing a
benign buffer overrun sometimes.

Since we have C++11 now, we can fix this by using a matcher over a
std::pair of the pointer and length. I also took the opportunity to
refactor the matchers a little. The old matchers had many very specific
overloads and also collided with the names of some standard gMock
matchers. Now there are just two more-general matchers with unique
names.

Test: CE CDM Unit Tests
Test: Android Unit Tests
Bug: 159463905
Change-Id: I758b140226bfe2bae6962ee5c64fd6af186b5819
2020-06-24 14:27:09 -07:00
..
2020-02-03 14:45:32 -08:00
2020-02-03 14:45:32 -08:00
2020-02-03 14:45:32 -08:00
2019-10-22 17:30:23 -07:00
2018-04-16 16:38:05 -07:00
2020-06-08 14:56:48 -07:00
2020-02-11 13:19:05 -08:00
2019-12-06 13:23:26 -08:00
2019-01-29 13:41:38 -08:00
2020-02-03 14:45:32 -08:00
2020-06-08 14:56:48 -07:00
2019-10-22 17:30:23 -07:00