MCPcopy Create free account
hub / github.com/GJDuck/e9patch / verify

Function verify

src/e9patch/e9alloc.cpp:546–555  ·  view source on GitHub ↗

* Verify bounds. */

Source from the content-addressed store, hash-verified

544 * Verify bounds.
545 */
546static bool verify(intptr_t lb, intptr_t ub)
547{
548 if (lb > ub)
549 return false;
550 if (IS_RELATIVE(lb))
551 return IS_RELATIVE(ub);
552 if (IS_ABSOLUTE(lb))
553 return IS_ABSOLUTE(ub);
554 return false;
555}
556
557/*
558 * Allocates a chunk of virtual address space of size `size` and within the

Callers 2

allocateFunction · 0.85
reserveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected