diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-03-12 23:50:28 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-03-14 20:25:12 +0100 |
| commit | 5b0a54f8d7ab0bd15a81352566f21d932facbb2c (patch) | |
| tree | 66ce5401083982fee770039bb6ce3653e4b7d0c6 /src/cct.c | |
| parent | 6459f4fe68e38fba7cb2000523843d5fa84332cc (diff) | |
| download | PROJ-5b0a54f8d7ab0bd15a81352566f21d932facbb2c.tar.gz PROJ-5b0a54f8d7ab0bd15a81352566f21d932facbb2c.zip | |
Avoid 'invalidscanf,scanf without field width limits can crash with huge input data on some versions of libc' with older cppcheck versions
Diffstat (limited to 'src/cct.c')
| -rw-r--r-- | src/cct.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -202,6 +202,7 @@ int main(int argc, char **argv) { } if (opt_given (o, "c")) { + /* cppcheck-suppress invalidscanf */ int ncols = sscanf (opt_arg (o, "c"), "%d,%d,%d,%d", columns_xyzt, columns_xyzt+1, columns_xyzt+2, columns_xyzt+3); if (ncols != nfields) { fprintf (stderr, "%s: Too few input columns given: '%s'\n", o->progname, opt_arg (o, "c")); |
