Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork219
Closed
Description
| _initializerCallback(); |
When user creates his own object and passes a null pointer for EthernetInterface()arduino::EthernetClass Ethernet(nullptr); then the uninitialized function pointer_initializerCallback is called accessing some random memory location.
Also as the comment asks "What is this function for?". If this is not defined or documentated, then you should remove it completely to avoid such errors. Beside of this, this "callback" functionsmakes no sence, as this is called fromEthernetClass::begin() synchronously. So the user can call any function afterwards. It isbad design to move private project specific code into public libraries.
Metadata
Metadata
Assignees
Labels
No labels