Consider using fuzzing to evaluate behaviour of equivalency checks in reflect
package
#943
Labels
enhancement
New feature or request
reflection
Issues and PRs about the reflection subsystem used to convert between attr.Values and Go values.
types
Issues and pull requests about our types abstraction and implementations.
Module version
Use-cases
A bug relating to the handling of floating point values within the
reflect
package in terraform-plugin-framework was discovered as described in Convert to number error when storing a value in float64 during execution of provider-defined function. The bug was a consequence of the way in which equivalency of floating point values was being determined, coupled with the fact that the logic containing the bug within thereflect
package was evaluated during the execution of provider-defined functions, which are a newly exposed feature.Attempted Solutions
N/A
Proposal
It might be worth considering the introduction of fuzzing to explore whether execution of logic within the
reflect
package with a range of different values for varying types exposes any further bugs relating to equivalency checks, or related issues.References
The text was updated successfully, but these errors were encountered: