Closed cuanduo closed 5 years ago
Well, if you want to break VGMPlay, there are more creative ways to do it. Like partially broken VGMs, for example.
Setting the sample rate to anything smaller than 1000 won't result in any useful sound anyway.
So I consider this a "not worth fixing", as nobody sane would use those configurations. (And I verified that with SampleRate = 1, the buffer is never used.)
I also edited your post with code blocks, so that it doesn't do unwanted references to other issues.
if we set SampleRate = 0; in vgmplay.ini will cause divide by zero as follows
if set SampleRate = 1; and commandline with -LogSound:1 will cause malloc(0) and may cause heap overflow