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"