Update fuzz tests to match output desriptor struct
[ Merge of http://go/wvgerrit/147110 ] The OEMCrypto_DestBufferDesc had fields address/address_length renamed to clear_buffer/clear_buffer_length in v17. However this was not updated for the fuzz tests thus causing some code coverage errors. This should fix those errors. Merged from https://widevine-internal-review.googlesource.com/146889 Bug: 220946359, 220946990 Test: GtsMediaTestCases on sunfish Change-Id: I2837de2f79c0e731d072e3712d6b769df17a1c7e
This commit is contained in:
@@ -14,7 +14,7 @@ void FreeOutputBuffers(OEMCrypto_SESSION session_id,
|
||||
int* secure_fd) {
|
||||
switch (output_descriptor.type) {
|
||||
case OEMCrypto_BufferType_Clear: {
|
||||
delete[] output_descriptor.buffer.clear.address;
|
||||
delete[] output_descriptor.buffer.clear.clear_buffer;
|
||||
break;
|
||||
}
|
||||
case OEMCrypto_BufferType_Secure: {
|
||||
@@ -32,7 +32,7 @@ bool InitializeOutputBuffers(OEMCrypto_SESSION session_id,
|
||||
int* secure_fd, size_t input_buffer_size) {
|
||||
switch (output_descriptor.type) {
|
||||
case OEMCrypto_BufferType_Clear: {
|
||||
output_descriptor.buffer.clear.address =
|
||||
output_descriptor.buffer.clear.clear_buffer =
|
||||
new OEMCrypto_SharedMemory[input_buffer_size];
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user