Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab29c52e authored by George Burgess IV's avatar George Burgess IV Committed by android-build-merger
Browse files

Merge "memunreachable_test: don't use `write` to escape addresses"

am: f261f518

Change-Id: Ibdf91f3d9ab2285621d0111c7697e98082381234
parents 5ed9a80b f261f518
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -47,7 +47,8 @@ class HiddenPointer {

// Trick the compiler into thinking a value on the stack is still referenced.
static void Ref(void** ptr) {
  write(0, ptr, 0);
  void** volatile storage;
  storage = ptr;
}

class MemunreachableTest : public ::testing::Test {