From 22719b880ee4a3b07d598c00502c10de775ceb8c Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 23 Oct 2015 12:37:34 +0000 Subject: [PATCH] Checking program arguments of test/fake_au. Coverity CID 21832. --- cdrskin/cdrskin_timestamp.h | 2 +- test/fake_au.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index ec81cc8..e6f931a 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2015.10.23.122644" +#define Cdrskin_timestamP "2015.10.23.123606" diff --git a/test/fake_au.c b/test/fake_au.c index 01d7a41..048b50e 100644 --- a/test/fake_au.c +++ b/test/fake_au.c @@ -48,6 +48,11 @@ int main(int argc, char **argv) goto help; } for(i= 1; i= 4096) { + fprintf(stderr,"%s: argument at position %d is much too long.\n", + argv[0], i); + exit(1); + } if(strcmp(argv[i],"-o")==0) { if(i>=argc-1) { fprintf(stderr,"%s: option -o needs a file address as argument.\n",