diff options
| -rw-r--r-- | meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2019-12900.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2019-12900.patch b/meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2019-12900.patch deleted file mode 100644 index 9859d9d1a2..0000000000 --- a/meta/recipes-extended/bzip2/bzip2-1.0.6/CVE-2019-12900.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From 74de1e2e6ffc9d51ef9824db71a8ffee5962cdbc Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Albert Astals Cid <aacid@kde.org> | ||
| 3 | Date: Tue, 28 May 2019 19:35:18 +0200 | ||
| 4 | Subject: [PATCH] Make sure nSelectors is not out of range | ||
| 5 | |||
| 6 | nSelectors is used in a loop from 0 to nSelectors to access selectorMtf | ||
| 7 | which is | ||
| 8 | UChar selectorMtf[BZ_MAX_SELECTORS]; | ||
| 9 | so if nSelectors is bigger than BZ_MAX_SELECTORS it'll do an invalid memory | ||
| 10 | access | ||
| 11 | Fixes out of bounds access discovered while fuzzying karchive | ||
| 12 | |||
| 13 | Link: https://gitlab.com/federicomenaquintero/bzip2/commit/74de1e2e6ffc9d51ef9824db71a8ffee5962cdbc.patch | ||
| 14 | |||
| 15 | Upstream-Status: Backport | ||
| 16 | CVE: CVE-2019-12900.patch | ||
| 17 | Signed-off-by: Saloni Jain <Saloni.Jain@kpit.com> | ||
| 18 | --- | ||
| 19 | decompress.c | 2 +- | ||
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/decompress.c b/decompress.c | ||
| 23 | index ab6a624..f3db91d 100644 | ||
| 24 | --- a/decompress.c | ||
| 25 | +++ b/decompress.c | ||
| 26 | @@ -287,7 +287,7 @@ Int32 BZ2_decompress ( DState* s ) | ||
| 27 | GET_BITS(BZ_X_SELECTOR_1, nGroups, 3); | ||
| 28 | if (nGroups < 2 || nGroups > 6) RETURN(BZ_DATA_ERROR); | ||
| 29 | GET_BITS(BZ_X_SELECTOR_2, nSelectors, 15); | ||
| 30 | - if (nSelectors < 1) RETURN(BZ_DATA_ERROR); | ||
| 31 | + if (nSelectors < 1 || nSelectors > BZ_MAX_SELECTORS) RETURN(BZ_DATA_ERROR); | ||
| 32 | for (i = 0; i < nSelectors; i++) { | ||
| 33 | j = 0; | ||
| 34 | while (True) { | ||
| 35 | -- | ||
| 36 | 2.22.0 | ||
