From 2f4e479ad1c0d93df16aa2eb9d8f95f2c48cc6ec Mon Sep 17 00:00:00 2001 From: ila Date: Fri, 16 Aug 2024 01:56:41 +0400 Subject: [PATCH] Restore start symbol check --- osc/util/ar.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osc/util/ar.py b/osc/util/ar.py index ad32354b..8c501e66 100644 --- a/osc/util/ar.py +++ b/osc/util/ar.py @@ -161,6 +161,9 @@ class Ar: h.file = h.file[:-1] continue + if not h.file.startswith(b'/'): + continue + # long file name assert h.file[0:1] == b"/" assert ext_fnhdr_data is not None