From 1e99ac7b1870c041e5e424441b9dc7e1e5171600 Mon Sep 17 00:00:00 2001 From: npt-1707 Date: Mon, 18 May 2026 06:38:10 +0800 Subject: [PATCH] Pkgs/rife-ncnn-vs/Lib/site-packages/pip/_vendor/distlib/_backport/tarfile.py: Fix infinite loop in the tarfile module --- .../Lib/site-packages/pip/_vendor/distlib/_backport/tarfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Pkgs/rife-ncnn-vs/Lib/site-packages/pip/_vendor/distlib/_backport/tarfile.py b/Pkgs/rife-ncnn-vs/Lib/site-packages/pip/_vendor/distlib/_backport/tarfile.py index d66d8566..8b6d9a0b 100644 --- a/Pkgs/rife-ncnn-vs/Lib/site-packages/pip/_vendor/distlib/_backport/tarfile.py +++ b/Pkgs/rife-ncnn-vs/Lib/site-packages/pip/_vendor/distlib/_backport/tarfile.py @@ -1426,6 +1426,8 @@ def _proc_pax(self, tarfile): length, keyword = match.groups() length = int(length) + if length == 0: + raise InvalidHeaderError("invalid header") value = buf[match.end(2) + 1:match.start(1) + length - 1] # Normally, we could just use "utf8" as the encoding and "strict"