Ticket #2976 (closed defect: fixed)
[PATCH] When compiling with -Werror=format-security, we get "error: format not a string literal and no format arguments "
|Reported by:||rouault||Owned by:||warmerdam|
gcc -Werror=format-security fails on constructs like, printf(buffer), that may be cause crashes if buffer contains '%' characters. The correct format is printf("%s", buffer) instead.
I've detected 3 errors of that kind in GDAL itself (fix to follow), but there are remaining in internal libgeotiff and libtiff. Patches to fix those ones attached.