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

Commit f261f518 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 7baa970d 373cb301
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 {