symqemu icon indicating copy to clipboard operation
symqemu copied to clipboard

symqemu can not run normally on program which call mmap to read file

Open hackoflpf opened this issue 2 years ago • 2 comments

i wanto use symqemu to find new paths on freetype-demos ftbench program,but it can't run symbolic execution properly.I have set the environment variables correctly.I use /bin/cat to test,it runs normally. image However,when i use ftbench program,it doesn't run normally. image Finally,i try to debug the program,i find it can not call sym_make_symbolic function,because the ftbench program use mmap to read file.

hackoflpf avatar Jul 25 '23 03:07 hackoflpf

I guess that needs instrumentation.

aurelf avatar Feb 11 '24 21:02 aurelf

Yes, we would need to intercept the mmap call and mark the target memory region as symbolic input bytes.

sebastianpoeplau avatar Feb 22 '24 13:02 sebastianpoeplau