umock-c
umock-c copied to clipboard
.CopyOutArgument_ should not call a hooked function
When
STRICT_EXPECTED_CALL(function(args...))
.CopyOutArgument_gaga(&source, sizeof(source));
is used AND function has a hook registered the hook WILL get called. This should not happen, and CopyOutArgument should behave like .SetReturn() and not invoke the hooked function.
Rediscovered this in 2024 March 25, so 832 days after initially reporting the bug.
I have nothing to add to my initial description.