Bug #32

GFitsTableLlgCol::integer() method is subject to overflow

Added by Knödlseder Jürgen almost 13 years ago.

Status:NewStart date:02/20/2012
Priority:NormalDue date:
Assigned To:-% Done:

0%

Category:-
Target version:-
Duration:

Description

The GFitsTableLlgCol::integer() method returns an int value which is too small to hold a full long long (64 Bit) integer.

The only obvious solution to this would be to change the generic return type of the integer() method to long long, but this may move the overflow problem to the user side. Maybe it would be better to add a range check to GFitsTableLlgCol::integer(), and throw an exception if an overflow occurs.


Recurrence

No recurrence.

Also available in: Atom PDF