zyantific / zydis

Fast and lightweight x86/x86-64 disassembler and code generation library
https://zydis.re
MIT License
3.47k stars 436 forks source link

Improve fuzzer stability in persistent mode #453

Closed athre0z closed 1 year ago

athre0z commented 1 year ago

fread does internal buffering that can result in different code paths to be taken every time we call it. This is detrimental for fuzzing stability in persistent mode. This PR changes the code to use a direct read syscall on POSIX.