panda-re / panda

Platform for Architecture-Neutral Dynamic Analysis
https://panda.re
Other
2.5k stars 480 forks source link

PyPanda ‘memsavep’ error in Python3 #772

Closed devdkerr closed 4 years ago

devdkerr commented 4 years ago

The memsavep python binding to libpanda fails in Python3, seemingly because the fileno() returns a file descriptor but the underlying C function expects a 'FILE *'.

I attempted a ctypes call to fdopen to dereference the file descriptor to a 'FILE ' but get a casting error where it actually returns a LP_FILE and not a 'FILE '.

lacraig2 commented 4 years ago

Hey @devdkerr,

Good catch. I fixed this in #774. It should be in mainline soon.

Let me know if it works for you. Thanks.