// Copyright 2020 The Dawn Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef SRC_DAWN_COMMON_ALLOC_H_
#define SRC_DAWN_COMMON_ALLOC_H_

#include <cstddef>
#include <new>

namespace dawn {

template <typename T>
T* AllocNoThrow(size_t count) {
#if defined(ADDRESS_SANITIZER) || defined(MEMORY_SANITIZER)
    if (count * sizeof(T) >= 0x70000000) {
        // std::nothrow isn't implemented in sanitizers and they often have a 2GB allocation limit.
        // Catch large allocations and error out so fuzzers make progress.
        return nullptr;
    }
#endif
    return new (std::nothrow) T[count];
}

}  // namespace dawn

#endif  // SRC_DAWN_COMMON_ALLOC_H_
