petrs / pyAPDUFuzzer

A fuzzer for APDU-based smartcard interfaces
18 stars 9 forks source link

Rewind stdin before reading from it #7

Closed jwilk closed 6 years ago

jwilk commented 6 years ago

Rewinding stdin is necessary for persistent mode in Python 2, because the underlying C stdio can cache the EOF status. This happens at least on FreeBSD and OS X.

(This is 100% untested. Sorry!)

ph4r05 commented 6 years ago

Thanks! I've tested it and it works.