-
Notifications
You must be signed in to change notification settings - Fork 121
Description
Description
This code (_parse_ffi_str):
https://github.com/angr/pyvex/blob/master/pyvex/native.py#L16
Creates a cache file such as this:
/tmp/pyvex_ffi_parser_cache.27654ee7f970352e83b36ba81f53e1b2
But the file is read/write only to the owner, and not readable by others. The next user to run Angr will get an exception raised, because the file is known to exist, and _parse_ffi_str attempts to open it, but can't, and an exception is raised. This basically prevents two different users on a Linux system from importing pyvex.
Steps to reproduce the bug
On a Linux system, with two users, run any Angr script that imports pyvex as user 'A'. Then run the same thing as user 'B'. The user 'B' attempt should fail, because of an exception trying to open the FFI cache file.
Environment
No response
Additional context
No response