umock-c icon indicating copy to clipboard operation
umock-c copied to clipboard

.CopyOutArgument_ should not call a hooked function

Open anporumb opened this issue 4 years ago • 1 comments

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.

anporumb avatar Dec 14 '21 13:12 anporumb

Rediscovered this in 2024 March 25, so 832 days after initially reporting the bug.

I have nothing to add to my initial description.

anporumb avatar Mar 25 '24 13:03 anporumb