Product Documentation

c-treeACE V10.3 Release Notes

Previous Topic

Next Topic

CTDB - ctdbGetFieldAsSigned on CT_?FLOAT memory overwrite

The ctdbGetFieldAsString function used by ISAM Explorer to visualize floating point fields was overflowing a buffer in isolated cases. To correct this, the default float string format was changed to use the shorter representation: 6.953223e-310 or 0.000000:

  • 6.953223e-310: Scientific notation (mantissa/exponent), lowercase
  • 0.000000: Decimal floating point, lowercase

The side effect of this change is that now ctdbGetFieldAsString() may return a floating point using the scientific notation instead of the normal number representation.

It is possible to restore the original behavior by calling ctdbSetDefFloatFormat(hSession,"0.000000") after allocating the session.

TOCIndex