[Git][security-tracker-team/security-tracker][master] 2 commits: Add a readable hint on what happens on unpickling errors
Dominik George (@natureshadow)
natureshadow at debian.org
Tue Mar 28 09:16:37 BST 2023
Dominik George pushed to branch master at Debian Security Tracker / security-tracker
Commits:
e5eef89c by Dominik George at 2023-03-28T10:15:54+02:00
Add a readable hint on what happens on unpickling errors
- - - - -
901b5a94 by Dominik George at 2023-03-28T10:16:15+02:00
Merge branch 'master' of salsa.debian.org:security-tracker-team/security-tracker
- - - - -
1 changed file:
- lib/python/sectracker/xpickle.py
Changes:
=====================================
lib/python/sectracker/xpickle.py
=====================================
@@ -65,6 +65,11 @@ def _wraploader(typ, parser):
return (_pickle.load(f), True)
except (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/-/compare/49b3767a97813d17875235cae51287015c727bbf...901b5a944fe6061537524d375dfeddf2e4c2f55f
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/49b3767a97813d17875235cae51287015c727bbf...901b5a944fe6061537524d375dfeddf2e4c2f55f
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/422925fe/attachment.htm>
More information about the debian-security-tracker-commits
mailing list