ARMmbed / ARMmbed/mbed-drivers

FunctionPointerBase::call() no check for valid if fptr has been set

Open
#83 7 comments 0 reactions 0 assignees View on GitHub
mirrored
Dominant language
C++
Stars
39
Forks
41
PR merge metrics
No merged PRs in 30d

Description

FunctionPointerBase method call()

```
// taken from FunctionPointerBase.h
inline R call(void* arg) {
return _membercaller(_object, _member, arg);
}
```

does not check if _membercaller or _object are valid.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with FunctionPointerBase.h and the FunctionPointerBase::call() implementation shown in the issue. Determine the project's expected behavior when _membercaller or _object is invalid, then add coverage for those states. Done means call() handles invalid targets safely and the relevant tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.