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

Commit 0c8ca9ec 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

am: ab29c52e

Change-Id: I5551b7eee30a720bd8a346981edb0f2c9dfb11da
parents 5ae8b60f ab29c52e
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 {