infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
infix_protected_t Struct Reference

Internal representation of a memory block that will be made read-only. More...

#include <infix_internals.h>

Public Attributes

voidrw_ptr
 
size_t size
 

Detailed Description

Internal representation of a memory block that will be made read-only.

This is used to harden the infix_reverse_t context against runtime memory corruption. The context is allocated in a standard read-write memory region, fully populated, and then its permissions are changed to read-only using this handle.

Member Data Documentation

◆ rw_ptr

void* infix_protected_t::rw_ptr

The read-write pointer before being made read-only.

◆ size

size_t infix_protected_t::size

The size of the allocated memory region in bytes.


The documentation for this struct was generated from the following file: