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

Commit 6d4d7936 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

am: 0c8ca9ec

Change-Id: Ibaa3909d6ae82cf81d74787c48bf9eff8ec0aff7
parents f097aeeb 0c8ca9ec
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 {