<div dir="ltr">Is this just on when running tests?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 16, 2019 at 1:28 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I've a PR ready that might be a bit controversial among contributors as it <br>
effectively "bans" a well-defined behaviour of C/C++, that is underflow/<br>
overflow on unsigned integer arithmetic. However there are potential for real <br>
bugs to be hidden by such a behaviour (I or other contributors fixed a few <br>
instances of that in a few previous commits), so it seems reasonable to try to <br>
avoid it when possible, and when not possible, to tag the functions where this <br>
is explicitly allowed with CPL_NOSANITIZE_UNSIGNED_INT_OVERFLOW<br>
<br>
See<br>
<a href="https://github.com/OSGeo/gdal/pull/1782" rel="noreferrer" target="_blank">https://github.com/OSGeo/gdal/pull/1782</a><br>
<br>
Even<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>