Reset ocCurrentProto in floram callbacks
schoppmp
Branch: schoppmp/absentminded-crypto-kit:fix-cprg-pd
Branch: jackdoerner/absentminded-crypto-kit:master
Merged
Merged pull request
Merged in schoppmp/absentminded-crypto-kit/fix-cprg-pd (pull request #2)
When the functions
floram_scan_callback
andfloram_scan_callback_ro
get passed a non-NULLProtocolDesc*
as their second argument, they replace the one in Obliv-C with it. However, they never restore it, leading to a race condition that makes floram operations hang sporadically on some systems. This PR fixes the issue.Test system:
Linux 4.16.4-1-ARCH
gcc (GCC) 7.3.1 20180406
glibc 2.27-2