Project

General

Profile

Actions

Bug #9490

closed

Postgres backend can throw exception when getting subnormal floats out of the database

Added by Roel Standaert almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
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())
Actions #1

Updated by Roel Standaert almost 3 years ago

  • Status changed from New to InProgress
Actions #2

Updated by Roel Standaert almost 3 years ago

  • Status changed from InProgress to Review
Actions #3

Updated by Roel Standaert almost 3 years ago

  • Assignee deleted (Roel Standaert)
Actions #4

Updated by Roel Standaert almost 3 years ago

  • Assignee set to Korneel Dumon
Actions #5

Updated by Roel Standaert almost 3 years ago

  • Status changed from Review to Resolved
  • Assignee changed from Korneel Dumon to Roel Standaert
  • % Done changed from 0 to 100
Actions #6

Updated by Roel Standaert almost 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF