ndrewh / pyda

Write dynamic binary analysis tools in Python
Other
7 stars 0 forks source link

i/o: Select unlikely-to-be-used fds for duping stdio #25

Open ndrewh opened 4 months ago

ndrewh commented 4 months ago

Currently, we use dup to get another file descriptor referring to stdin/stdout/stderr. We should probably hard-code a unlikely-to-be-used fd and call dup2 instead.