This patch adds a suite of tests for OEMCrypto that verifying buffer overflow and off-by-one errors. The reference code has also been updated to pass these tests. The ODK library and the OEMCrypto API have not changed since the release of version 16.4.
17 lines
490 B
C++
17 lines
490 B
C++
// Copyright 2018 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine License
|
|
// Agreement.
|
|
|
|
#ifndef WVCDM_UTIL_DISALLOW_COPY_AND_ASSIGN_H_
|
|
#define WVCDM_UTIL_DISALLOW_COPY_AND_ASSIGN_H_
|
|
|
|
namespace wvcdm {
|
|
|
|
#define CORE_DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
|
TypeName(const TypeName&); \
|
|
void operator=(const TypeName&)
|
|
|
|
} // namespace wvcdm
|
|
|
|
#endif // WVCDM_UTIL_DISALLOW_COPY_AND_ASSIGN_H_
|