Uninitialized Function Pointer in Constructor
Overview
- Severity: Low
- Confidence: High
- Affected Versions: 0.4.5 - 0.4.26, 0.5.0 - 0.5.8
What is the Uninitialized Function Pointer in Constructor vulnerability?
Earlier versions of the Solidity compiler contained bugs related to the handling of uninitalized function pointers used in constructors, which could generate unexpected program behavior. These older versions of Solidity should be avoided by modern smart contract developers, and function pointers in general should be avoided where possible to avoid confusion of logic and unintended errors.
Further reading: Solidity Documentation: Function Types