From bb0d0f95050c11559b5ed1e3511c6e5e830d846b Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 28 Oct 2015 19:19:01 +0000 Subject: [PATCH] Testing all arguments of fake_au for oversize. Coverity CID 21830. --- test/fake_au.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/fake_au.c b/test/fake_au.c index 048b50e..cbf5029 100644 --- a/test/fake_au.c +++ b/test/fake_au.c @@ -3,7 +3,8 @@ Fakes a file in SUN .au format from a raw little-endian PCM audio file (e.g. a file extracted from .wav by test/dewav). The input data are assumed to be 16 bit, stereo, 44100 Hz. - Copyright (C) 2006 Thomas Schmitt , provided under GPL + Copyright (C) 2006 - 2015 Thomas Schmitt + Provided under GPL version 2 or later. Info used: http://www.opengroup.org/public/pubs/external/auformat.html */ @@ -53,6 +54,8 @@ int main(int argc, char **argv) argv[0], i); exit(1); } + } + for(i= 1; i=argc-1) { fprintf(stderr,"%s: option -o needs a file address as argument.\n",