Testing all arguments of fake_au for oversize. Coverity CID 21830.
This commit is contained in:
parent
189a43bac9
commit
bb0d0f9505
@ -3,7 +3,8 @@
|
|||||||
Fakes a file in SUN .au format from a raw little-endian PCM audio file
|
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
|
(e.g. a file extracted from .wav by test/dewav). The input data are assumed
|
||||||
to be 16 bit, stereo, 44100 Hz.
|
to be 16 bit, stereo, 44100 Hz.
|
||||||
Copyright (C) 2006 Thomas Schmitt <scdbackup@gmx.net>, provided under GPL
|
Copyright (C) 2006 - 2015 Thomas Schmitt <scdbackup@gmx.net>
|
||||||
|
Provided under GPL version 2 or later.
|
||||||
|
|
||||||
Info used: http://www.opengroup.org/public/pubs/external/auformat.html
|
Info used: http://www.opengroup.org/public/pubs/external/auformat.html
|
||||||
*/
|
*/
|
||||||
@ -53,6 +54,8 @@ int main(int argc, char **argv)
|
|||||||
argv[0], i);
|
argv[0], i);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
for(i= 1; i<argc; i++) {
|
||||||
if(strcmp(argv[i],"-o")==0) {
|
if(strcmp(argv[i],"-o")==0) {
|
||||||
if(i>=argc-1) {
|
if(i>=argc-1) {
|
||||||
fprintf(stderr,"%s: option -o needs a file address as argument.\n",
|
fprintf(stderr,"%s: option -o needs a file address as argument.\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user