diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch b/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch index 88b84c6024..1cffdd6e05 100644 --- a/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch +++ b/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 999d4e74d34afa233ad8ad0c70b989d77a21957f Mon Sep 17 00:00:00 2001 | 1 | From 6e3868c8c330f997bc242a8d51d742baac449ecc Mon Sep 17 00:00:00 2001 |
2 | From: Petr Viktorin <encukou@gmail.com> | 2 | From: Petr Viktorin <encukou@gmail.com> |
3 | Date: Wed, 23 Aug 2023 20:00:07 +0200 | 3 | Date: Wed, 23 Aug 2023 20:00:07 +0200 |
4 | Subject: [PATCH] gh-107811: tarfile: treat overflow in UID/GID as failure to | 4 | Subject: [PATCH] gh-107811: tarfile: treat overflow in UID/GID as failure to |
@@ -13,10 +13,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
13 | create mode 100644 Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst | 13 | create mode 100644 Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst |
14 | 14 | ||
15 | diff --git a/Lib/tarfile.py b/Lib/tarfile.py | 15 | diff --git a/Lib/tarfile.py b/Lib/tarfile.py |
16 | index 3bbbcaa..473167d 100755 | 16 | index 0a0f31e..4dfb67d 100755 |
17 | --- a/Lib/tarfile.py | 17 | --- a/Lib/tarfile.py |
18 | +++ b/Lib/tarfile.py | 18 | +++ b/Lib/tarfile.py |
19 | @@ -2557,7 +2557,8 @@ class TarFile(object): | 19 | @@ -2685,7 +2685,8 @@ class TarFile(object): |
20 | os.lchown(targetpath, u, g) | 20 | os.lchown(targetpath, u, g) |
21 | else: | 21 | else: |
22 | os.chown(targetpath, u, g) | 22 | os.chown(targetpath, u, g) |
@@ -35,6 +35,3 @@ index 0000000..ffca413 | |||
35 | +:mod:`tarfile`: extraction of members with overly large UID or GID (e.g. on | 35 | +:mod:`tarfile`: extraction of members with overly large UID or GID (e.g. on |
36 | +an OS with 32-bit :c:type:`!id_t`) now fails in the same way as failing to | 36 | +an OS with 32-bit :c:type:`!id_t`) now fails in the same way as failing to |
37 | +set the ID. | 37 | +set the ID. |
38 | -- | ||
39 | 2.45.0 | ||
40 | |||