[postgis-devel] PostGIS (actually liblwgeom) integration with oss-fuzz
Even Rouault
even.rouault at spatialys.com
Fri Jul 14 02:56:38 PDT 2017
On jeudi 13 juillet 2017 18:20:09 CEST Regina Obe wrote:
> Even,
>
>
>
> Thanks for the input. I managed to create a docker build I could bash into
> using the oss-fuzz plain build and some logic I borrowed from strks
> postgis-docker.
>
>
>
> I was able to get as far as:
>
>
>
> cd fuzzers
>
> make dummyfuzzers
>
> and it generates /tmp/wkb_import_fuzzer and /tmp/wkt_import_fuzzer
>
To be clear, you can also do that outside of the oss-fuzz docker environement and use your
regular dev environment.
I rarely use the oss-fuzz Docker environement (just to check that the fuzzer programs work
well when I create them) and never bash into it.
> That said, when trying to build with
>
> CFLAGS="-fsanitize=undefined,address",
>
>
>
> My configure just gives error
>
>
>
> checking for gcc... gcc
>
> checking whether the C compiler works... no
>
> configure: error: in `/postgis-trunk':
>
> configure: error: C compiler cannot create executables
>
> See `config.log' for more details
>
Works for me. Perhaps your gcc version is too old and doesn't support the sanitizers.
And to build the fuzzers with a liblwgeom built with the sanitizers, you also need to do:
CXXFLAGS="-fsanitize=undefined,address" make dummyfuzzers
Note: I noticed that the *.sh scripts in fuzzers/ don't have execute permissions.
You need to
svn propset svn:executable on fuzzers/*.sh
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20170714/aeb44ccf/attachment.html>
More information about the postgis-devel
mailing list