Re: [PATCH v3 0/5] Add generic data patching functions

2024-04-23 Thread Naveen N Rao
On Mon, Mar 25, 2024 at 04:52:57PM +1100, Benjamin Gray wrote: > Currently patch_instruction() bases the write length on the value being > written. If the value looks like a prefixed instruction it writes 8 bytes, > otherwise it writes 4 bytes. This makes it potentially buggy to use for > writing

[PATCH v3 0/5] Add generic data patching functions

2024-03-24 Thread Benjamin Gray
Currently patch_instruction() bases the write length on the value being written. If the value looks like a prefixed instruction it writes 8 bytes, otherwise it writes 4 bytes. This makes it potentially buggy to use for writing arbitrary data, as if you want to write 4 bytes but it decides to write