Bug #9490
Postgres backend can throw exception when getting subnormal floats out of the database
Start date:
12/14/2021
Due date:
% Done:
100%
Estimated time:
Description
When we retrieve a float it uses std::stof
, which may throw std::out_of_range
when a subnormal float is stored in the database.
E.g. storing and retrieving the following number causes an exception:
std::nextafter(0.f, std::numeric_limits<float>::infinity())
Updated by Roel Standaert over 1 year ago
- Status changed from Review to Resolved
- Assignee changed from Korneel Dumon to Roel Standaert
- % Done changed from 0 to 100