[gdal-dev] Regression introduced by e4514b12

Denis Rykov rykovd at gmail.com
Thu Oct 1 09:00:28 PDT 2026


The threshold is meant to catch over-long literals, but it also captures
every negative int64 whose magnitude has 19 digits (sign + 19 digits = 20
chars). No positive int64 reaches 20 characters, since INT64_MAX has 19
digits - so only negative values are affected.

Impact: the field is typed Real instead of Integer64, so consumers see a
float column. If the field also holds large positive values, those lose
precision too - e.g. INT64_MAX then reads back as 9223372036854775808.0
(2^63).

The regression is specific to the GeoJSON reader's streaming number parser.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20261001/5f1eea76/attachment.htm>


More information about the gdal-dev mailing list