From e378d8a0e06f2cd130f5d91923f2101cc1b0c01a 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. --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/test/fake_au.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index ec81cc8f..e6f931ac 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2015.10.23.122644" +#define Cdrskin_timestamP "2015.10.23.123606" diff --git a/libburn/trunk/test/fake_au.c b/libburn/trunk/test/fake_au.c index 01d7a416..048b50e5 100644 --- a/libburn/trunk/test/fake_au.c +++ b/libburn/trunk/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",