0075dcd7f9
Since development seems to progress very slowly just follow other distros and update to latest commit. We're using Gentoo's distfile as source since there's no way to download arbitrary git hashes in tar/zip format without using a browser and there's no need for us to roll our own. This fixes following CVEs: CVE-2019-13590 CVE-2019-8357 CVE-2019-8356 CVE-2019-8355 CVE-2019-8354 CVE-2017-18189 CVE-2017-15642 CVE-2017-15372 CVE-2017-15371 CVE-2017-15370 CVE-2017-11359 CVE-2017-11358 CVE-2017-11332 Reference: https://github.com/doremir/sox/commit/d05aba55a86177f7a3d395c7a03c5c4e280b31fb PR: 267128 Reviewed by: Dan Nelson <dnelson@allantgroup.com> (maintainer)
15 lines
439 B
C
15 lines
439 B
C
--- src/output.c.orig 2021-05-09 20:19:07 UTC
|
|
+++ src/output.c
|
|
@@ -31,6 +31,11 @@ static int flow(sox_effect_t *effp, sox_sample_t const
|
|
sox_sample_t * obuf, size_t * isamp, size_t * osamp)
|
|
{
|
|
priv_t * p = (priv_t *)effp->priv;
|
|
+ /* Abort if there are no samples to write */
|
|
+ if (*isamp == 0) {
|
|
+ *osamp = 0;
|
|
+ return SOX_SUCCESS;
|
|
+ }
|
|
/* Write out *isamp samples */
|
|
size_t len = sox_write(p->file, ibuf, *isamp);
|
|
|