| Index: third_party/WebKit/Source/platform/audio/AudioArray.h
|
| diff --git a/third_party/WebKit/Source/platform/audio/AudioArray.h b/third_party/WebKit/Source/platform/audio/AudioArray.h
|
| index a05bf4fbf5d6ad11840e9e5863ea940973a8d74f..8965c14e4def6d54b69ec7374ac0b678d2ea977f 100644
|
| --- a/third_party/WebKit/Source/platform/audio/AudioArray.h
|
| +++ b/third_party/WebKit/Source/platform/audio/AudioArray.h
|
| @@ -58,7 +58,7 @@
|
| // Although n is a size_t, its true limit is max unsigned because we use
|
| // unsigned in zeroRange() and copyToRange(). Also check for integer
|
| // overflow.
|
| - CHECK_LE(n, std::numeric_limits<unsigned>::max() / sizeof(T));
|
| + RELEASE_ASSERT(n <= std::numeric_limits<unsigned>::max() / sizeof(T));
|
|
|
| unsigned initialSize = sizeof(T) * n;
|
|
|
| @@ -79,12 +79,12 @@
|
| static size_t extraAllocationBytes = 0;
|
|
|
| // Again, check for integer overflow.
|
| - CHECK_GE(initialSize + extraAllocationBytes, initialSize);
|
| + RELEASE_ASSERT(initialSize + extraAllocationBytes >= initialSize);
|
|
|
| T* allocation = static_cast<T*>(WTF::Partitions::fastMalloc(
|
| initialSize + extraAllocationBytes,
|
| WTF_HEAP_PROFILER_TYPE_NAME(AudioArray<T>)));
|
| - CHECK(allocation);
|
| + RELEASE_ASSERT(allocation);
|
|
|
| T* alignedData = alignedAddress(allocation, alignment);
|
|
|
|
|