[Git][security-tracker-team/security-tracker][master] xpickle: re-parse the file in case of AttributeError
Emilio Pozuelo Monfort (@pochu)
pochu at debian.org
Tue Mar 28 12:36:34 BST 2023
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
d89116ef by Emilio Pozuelo Monfort at 2023-03-28T13:36:18+02:00
xpickle: re-parse the file in case of AttributeError
- - - - -
1 changed file:
- lib/python/sectracker/xpickle.py
Changes:
=====================================
lib/python/sectracker/xpickle.py
=====================================
@@ -63,13 +63,8 @@ def _wraploader(typ, parser):
try:
with open(path + EXTENSION, "rb") as f:
return (_pickle.load(f), True)
- except (EOFError, IOError, _pickle.PickleError):
+ except (AttributeError, EOFError, IOError, _pickle.PickleError):
return (None, False)
- except (AttributeError, KeyError, TypeError) as e:
- raise RuntimeError(
- "The pickling format or target classes might have changed. Clean up using e.g."
- "`find . -name '*xpck' -delete` and try again."
- ) from e
def check(data, st):
try:
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/d89116efebb8c224d67acaca7c2e3fd43d1c6afb
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/d89116efebb8c224d67acaca7c2e3fd43d1c6afb
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20230328/ec92ad78/attachment.htm>
More information about the debian-security-tracker-commits
mailing list