mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-28 15:31:02 +00:00
More fuzzing progress
This commit is contained in:
@@ -106,7 +106,6 @@ struct port
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
struct process_context
|
||||
{
|
||||
process_context(x64_emulator& emu)
|
||||
@@ -123,6 +122,8 @@ struct process_context
|
||||
uint64_t current_ip{0};
|
||||
uint64_t previous_ip{0};
|
||||
|
||||
std::optional<uint64_t> exception_rip{};
|
||||
|
||||
emulator_object<TEB> teb;
|
||||
emulator_object<PEB> peb;
|
||||
emulator_object<RTL_USER_PROCESS_PARAMETERS> process_params;
|
||||
@@ -150,6 +151,7 @@ struct process_context
|
||||
buffer.write(this->executed_instructions);
|
||||
buffer.write(this->current_ip);
|
||||
buffer.write(this->previous_ip);
|
||||
buffer.write_optional(this->exception_rip);
|
||||
buffer.write(this->teb);
|
||||
buffer.write(this->peb);
|
||||
buffer.write(this->process_params);
|
||||
@@ -176,6 +178,7 @@ struct process_context
|
||||
buffer.read(this->executed_instructions);
|
||||
buffer.read(this->current_ip);
|
||||
buffer.read(this->previous_ip);
|
||||
buffer.read_optional(this->exception_rip);
|
||||
buffer.read(this->teb);
|
||||
buffer.read(this->peb);
|
||||
buffer.read(this->process_params);
|
||||
|
||||
Reference in New Issue
Block a user