Reset ocCurrentProto in floram callbacks

Merged
#2 · Created  · Last updated

Merged pull request

Merged in schoppmp/absentminded-crypto-kit/fix-cprg-pd (pull request #2)

5230cef·Author: ·Closed by: ·2018-05-08

Description

When the functions floram_scan_callback and floram_scan_callback_ro get passed a non-NULL ProtocolDesc* 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

0 attachments

0 comments

Loading commits...