.CopyOutArgument_ should not call a hooked function
- Dominant language
- C
- Stars
- 36
- Forks
- 27
- Avg merge
- 32m
- Merged PRs (30d)
- 3
Description
When
```c
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue using STRICT_EXPECTED_CALL with CopyOutArgument_gaga, a source buffer, and a registered hook, then compare its behavior with SetReturn(). Trace the mock expectation handling to find where the hooked function is invoked; done means CopyOutArgument populates the output without calling the hook.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100