Skip to content

Commit

Permalink
Merge pull request #2283 from zhaomaosu/fix-build-fail
Browse files Browse the repository at this point in the history
[DeviceASAN] Fix build error when using libcxx
  • Loading branch information
pbalcer authored Nov 5, 2024
2 parents d0af98f + 19d8e8d commit 004d247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/loader/layers/sanitizer/asan_libdevice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct LocalArgsInfo {
uint64_t SizeWithRedZone = 0;
};

constexpr std::size_t ASAN_MAX_NUM_REPORTS = 10;
constexpr uint64_t ASAN_MAX_NUM_REPORTS = 10;

struct LaunchInfo {
uintptr_t GlobalShadowOffset = 0;
Expand All @@ -98,7 +98,7 @@ constexpr unsigned ASAN_SHADOW_GRANULARITY = 1ULL << ASAN_SHADOW_SCALE;

// Based on the observation, only the last 24 bits of the address of the private
// variable have changed
constexpr std::size_t ASAN_PRIVATE_SIZE = 0xffffffULL + 1;
constexpr uint64_t ASAN_PRIVATE_SIZE = 0xffffffULL + 1;

// These magic values are written to shadow for better error
// reporting.
Expand Down
1 change: 0 additions & 1 deletion source/loader/layers/sanitizer/linux/symbolizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
#include "common.hpp"
#include "llvm/DebugInfo/Symbolize/DIPrinter.h"
#include "llvm/DebugInfo/Symbolize/Symbolize.h"
#include <link.h>
Expand Down

0 comments on commit 004d247

Please sign in to comment.