summaryrefslogtreecommitdiff
path: root/user/sox/CVE-2019-13590.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2023-02-06 03:51:29 +0000
committerZach van Rijn <me@zv.io>2023-02-06 03:53:58 +0000
commit491802e5efd6fa2d5543de51e93ffc2ae0a6f1b1 (patch)
tree1b72677c935f5c82312062ad291474fba200c2be /user/sox/CVE-2019-13590.patch
parent130b4b415b5591a7320ea3cfdf87c43987916655 (diff)
downloadpackages-491802e5efd6fa2d5543de51e93ffc2ae0a6f1b1.tar.gz
packages-491802e5efd6fa2d5543de51e93ffc2ae0a6f1b1.tar.bz2
packages-491802e5efd6fa2d5543de51e93ffc2ae0a6f1b1.tar.xz
packages-491802e5efd6fa2d5543de51e93ffc2ae0a6f1b1.zip
user/sox: move to legacy/
This package has numerous CVEs and does not currently build on our pmmx target. It is not required by any other packages at the moment. See also: #961.
Diffstat (limited to 'user/sox/CVE-2019-13590.patch')
-rw-r--r--user/sox/CVE-2019-13590.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/user/sox/CVE-2019-13590.patch b/user/sox/CVE-2019-13590.patch
deleted file mode 100644
index a09b11bae..000000000
--- a/user/sox/CVE-2019-13590.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 7b6a889217d62ed7e28188621403cc7542fd1f7e Mon Sep 17 00:00:00 2001
-From: Mans Rullgard <mans@mansr.com>
-Date: Tue, 4 Feb 2020 12:55:18 +0000
-Subject: [PATCH] sox-fmt: validate comments_bytes before use (CVE-2019-13590)
- [bug #325]
-
-Cap the comments size to 1 GB to avoid overflows in subsequent
-arithmetic.
-
-The missing null check mentioned in the bug report is bogus since
-lsx_calloc() returns a valid pointer or aborts.
----
- src/sox-fmt.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/sox-fmt.c b/src/sox-fmt.c
-index aad965cd..11c88771 100644
---- a/src/sox-fmt.c
-+++ b/src/sox-fmt.c
-@@ -46,7 +46,9 @@ static int startread(sox_format_t * ft)
- lsx_readdw(ft, &comments_bytes))
- return SOX_EOF;
-
-- if (((headers_bytes + 4) & 7) || headers_bytes < FIXED_HDR + comments_bytes ||
-+ if (((headers_bytes + 4) & 7) ||
-+ comments_bytes > 0x40000000 || /* max 1 GB */
-+ headers_bytes < FIXED_HDR + comments_bytes ||
- (num_channels > 65535)) /* Reserve top 16 bits */ {
- lsx_fail_errno(ft, SOX_EHDR, "invalid sox file format header");
- return SOX_EOF;
---
-2.25.0
-