liboqs-dotnet icon indicating copy to clipboard operation
liboqs-dotnet copied to clipboard

fix Classic McEliece stackoverflow issue by running unit tests with larger stack

Open darkthread opened this issue 1 year ago • 0 comments

The Classic McEliece algorithm requires a larger stack. The unit test project tests all algorithm including the Classic McEliece so the test always crashes and return nothing.

image

The active test run was aborted. Reason: Test host process crashed : Stack overflow.
   at OpenQuantumSafe.KEM.OQS_KEM_keypair(IntPtr, Byte[], Byte[])
   at OpenQuantumSafe.KEM.keypair(Byte[] ByRef, Byte[] ByRef)
   at dotnetOQSUnitTest.KEMTests.TestKEM(System.String)
   at dotnetOQSUnitTest.KEMTests.TestAllKEMs()

Run the KEM tests in a Thread with 2MB stack seems fix the issue.

image

darkthread avatar Jan 25 '24 12:01 darkthread