diff options
author | XANTRONIX Development | 2022-02-23 20:20:39 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-23 20:22:52 -0500 |
commit | 4d8f0128df8a49428a155f16a0de34621bed0f56 (patch) | |
tree | 551472a60ffc91af34aec5f7176dd890bcee9317 | |
parent | 3cdeff30607fed1f5438ce5dd8ecff7d75c63dd5 (diff) | |
download | xas-4d8f0128df8a49428a155f16a0de34621bed0f56.tar.gz xas-4d8f0128df8a49428a155f16a0de34621bed0f56.tar.bz2 xas-4d8f0128df8a49428a155f16a0de34621bed0f56.zip |
Avoid xas_bank_record() infinite loop
-rw-r--r-- | src/bank.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -64,6 +64,8 @@ ssize_t xas_bank_record(xas_bank *bank, if ((readlen = xas_audio_stream_read(input, &buf, amount)) < 0) { goto error_audio_stream_read; + } else if (readlen == 0) { + break; } xas_audio_copy(bank->format, |