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.
23 lines
602 B
C
23 lines
602 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_UTIL_COMMON_H_
|
|
#define WVCDM_UTIL_UTIL_COMMON_H_
|
|
|
|
#ifdef _WIN32
|
|
# ifdef CORE_UTIL_IMPLEMENTATION
|
|
# define CORE_UTIL_EXPORT __declspec(dllexport)
|
|
# else
|
|
# define CORE_UTIL_EXPORT __declspec(dllimport)
|
|
# endif
|
|
#else
|
|
# ifdef CORE_UTIL_IMPLEMENTATION
|
|
# define CORE_UTIL_EXPORT __attribute__((visibility("default")))
|
|
# else
|
|
# define CORE_UTIL_EXPORT
|
|
# endif
|
|
#endif
|
|
|
|
#endif // WVCDM_UTIL_UTIL_COMMON_H_
|