Project

General

Profile

Actions

Bug #9490

closed
RS RS

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

Bug #9490: Postgres backend can throw exception when getting subnormal floats out of the database

Added by Roel Standaert over 4 years ago. Updated over 4 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())

RS Updated by Roel Standaert over 4 years ago Actions #1

  • Status changed from New to InProgress

RS Updated by Roel Standaert over 4 years ago Actions #2

  • Status changed from InProgress to Review

RS Updated by Roel Standaert over 4 years ago Actions #3

  • Assignee deleted (Roel Standaert)

RS Updated by Roel Standaert over 4 years ago Actions #4

  • Assignee set to Korneel Dumon

RS Updated by Roel Standaert over 4 years ago Actions #5

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

RS Updated by Roel Standaert over 4 years ago Actions #6

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom