2018-08-30 06:23:34 +08:00
|
|
|
//===-- hwasan_poisoning.h --------------------------------------*- C++ -*-===//
|
2017-12-09 09:31:51 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2017-12-09 09:31:51 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file is a part of HWAddressSanitizer.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef HWASAN_POISONING_H
|
|
|
|
#define HWASAN_POISONING_H
|
|
|
|
|
|
|
|
#include "hwasan.h"
|
|
|
|
|
|
|
|
namespace __hwasan {
|
|
|
|
uptr TagMemory(uptr p, uptr size, tag_t tag);
|
|
|
|
uptr TagMemoryAligned(uptr p, uptr size, tag_t tag);
|
|
|
|
|
|
|
|
} // namespace __hwasan
|
|
|
|
|
|
|
|
#endif // HWASAN_POISONING_H
|