Project

General

Profile

Bug #9490

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

Added by Roel Standaert about 1 month ago. Updated 12 days ago.

Status:
Closed
Priority:
Normal
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())
#1

Updated by Roel Standaert about 1 month ago

  • Status changed from New to InProgress
#2

Updated by Roel Standaert about 1 month ago

  • Status changed from InProgress to Review
#3

Updated by Roel Standaert about 1 month ago

  • Assignee deleted (Roel Standaert)
#4

Updated by Roel Standaert about 1 month ago

  • Assignee set to Korneel Dumon
#5

Updated by Roel Standaert about 1 month ago

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

Updated by Roel Standaert 12 days ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF