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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.7.0 |
| Component: | GDAL_Raster | Version: | unspecified |
| Severity: | normal | Keywords: | gtiff |
| Cc: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

