diff options
| -rw-r--r-- | meta/recipes-extended/libarchive/libarchive/0001-Merge-pull-request-2768-from-Commandoss-master.patch | 28 | ||||
| -rw-r--r-- | meta/recipes-extended/libarchive/libarchive_3.6.2.bb | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-extended/libarchive/libarchive/0001-Merge-pull-request-2768-from-Commandoss-master.patch b/meta/recipes-extended/libarchive/libarchive/0001-Merge-pull-request-2768-from-Commandoss-master.patch new file mode 100644 index 0000000000..66e88c91b4 --- /dev/null +++ b/meta/recipes-extended/libarchive/libarchive/0001-Merge-pull-request-2768-from-Commandoss-master.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 82b57a9740aa6d084edcf4592a3b8e49f63dec98 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tim Kientzle <kientzle@acm.org> | ||
| 3 | Date: Fri, 31 Oct 2025 22:07:19 -0700 | ||
| 4 | Subject: [PATCH] Merge pull request #2768 from Commandoss/master | ||
| 5 | |||
| 6 | Fix for an out-of-bounds buffer overrun when using p[H_LEVEL_OFFSET] | ||
| 7 | |||
| 8 | (cherry picked from commit ce614c65246158bcb0dc1f9c1dce5a5af65f9827) | ||
| 9 | |||
| 10 | Upstream-Status: Backport [https://github.com/libarchive/libarchive/commit/82b57a9740aa6d084edcf4592a3b8e49f63dec98] | ||
| 11 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 12 | --- | ||
| 13 | libarchive/archive_read_support_format_lha.c | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/libarchive/archive_read_support_format_lha.c b/libarchive/archive_read_support_format_lha.c | ||
| 17 | index 2a84ad9d..abf8b879 100644 | ||
| 18 | --- a/libarchive/archive_read_support_format_lha.c | ||
| 19 | +++ b/libarchive/archive_read_support_format_lha.c | ||
| 20 | @@ -690,7 +690,7 @@ archive_read_format_lha_read_header(struct archive_read *a, | ||
| 21 | * a pathname and a symlink has '\' character, a directory | ||
| 22 | * separator in DOS/Windows. So we should convert it to '/'. | ||
| 23 | */ | ||
| 24 | - if (p[H_LEVEL_OFFSET] == 0) | ||
| 25 | + if (lha->level == 0) | ||
| 26 | lha_replace_path_separator(lha, entry); | ||
| 27 | |||
| 28 | archive_entry_set_mode(entry, lha->mode); | ||
diff --git a/meta/recipes-extended/libarchive/libarchive_3.6.2.bb b/meta/recipes-extended/libarchive/libarchive_3.6.2.bb index e0b8b15df4..b834f2dbc3 100644 --- a/meta/recipes-extended/libarchive/libarchive_3.6.2.bb +++ b/meta/recipes-extended/libarchive/libarchive_3.6.2.bb | |||
| @@ -47,6 +47,7 @@ SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz \ | |||
| 47 | file://0001-Merge-pull-request-2696-from-al3xtjames-mkstemp.patch \ | 47 | file://0001-Merge-pull-request-2696-from-al3xtjames-mkstemp.patch \ |
| 48 | file://0001-Merge-pull-request-2749-from-KlaraSystems-des-tempdi.patch \ | 48 | file://0001-Merge-pull-request-2749-from-KlaraSystems-des-tempdi.patch \ |
| 49 | file://0001-Merge-pull-request-2753-from-KlaraSystems-des-temp-f.patch \ | 49 | file://0001-Merge-pull-request-2753-from-KlaraSystems-des-temp-f.patch \ |
| 50 | file://0001-Merge-pull-request-2768-from-Commandoss-master.patch \ | ||
| 50 | " | 51 | " |
| 51 | UPSTREAM_CHECK_URI = "http://libarchive.org/" | 52 | UPSTREAM_CHECK_URI = "http://libarchive.org/" |
| 52 | 53 | ||
