Browse Source

Checking program arguments of test/fake_au. Coverity CID 21832.

1.4.2
Thomas Schmitt 7 years ago
parent
commit
22719b880e
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 5
      test/fake_au.c

2
cdrskin/cdrskin_timestamp.h

@ -1 +1 @@
#define Cdrskin_timestamP "2015.10.23.122644"
#define Cdrskin_timestamP "2015.10.23.123606"

5
test/fake_au.c

@ -48,6 +48,11 @@ int main(int argc, char **argv)
goto help;
}
for(i= 1; i<argc; i++) {
if(strlen(argv[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",

Loading…
Cancel
Save