[QGIS-Developer] 3.40.7: crssync invoking undefined behavior

Greg Troxel gdt at lexort.com
Fri Jul 4 05:02:55 PDT 2025


Greg Troxel via QGIS-Developer <qgis-developer at lists.osgeo.org> writes:

> NetBSD-current (to be 11) detects and objects to inputs that are
> specified as UB, rather than silently doing something random -- it's
> been typical for ctype macros to use arrays, I think since the olden
> days of C89.
>
> When building 3.40.7, it invokes crssync, which outputs
>
>   ctype(3) isupper: invalid input: -61
>
> a sign that isupper was called with a "char" (signed char on x86) rather
> than the 8-bit quantity treated as unsigned converted to int, which is
> the proper behavior.   That's 189, 0xbd, which might be the fraction
> 1/2.  But what it is isn't the issue.

This was an issue in proj, now fixed.  Thanks Even for the very quick
turnaround!


More information about the QGIS-Developer mailing list