locke12456 / cmockery

Automatically exported from code.google.com/p/cmockery
0 stars 0 forks source link

mock_assert attempts to pass pointer via int argument to longjmp #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile and execute assert_module_test.c on LP64 platform.
2. Observe crash in setjmp.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Fix by replacing the passing of the assert expression in the longjmp argument 
with passing the 
expression in a member of a volatile global structure.

Original issue reported on code.google.com by Stephen....@gmail.com on 2 Mar 2010 at 5:48

GoogleCodeExporter commented 8 years ago
Sorry, this is an unintentional duplicate of issue 22.

Original comment by Stephen....@gmail.com on 15 Mar 2010 at 2:31