Do not call marshal.loads(...) of precompiled Python bytecode as it is...
Do not call marshal.loads(...) of precompiled Python bytecode as it is inherently unsafe. Replace for now with a brief summary of the code section of .pyc files. (Closes: #371)
Showing
- diffoscope/comparators/python.py 5 additions, 52 deletionsdiffoscope/comparators/python.py
- tests/comparators/test_python.py 14 additions, 9 deletionstests/comparators/test_python.py
- tests/data/pyc_expected_diff 6 additions, 11 deletionstests/data/pyc_expected_diff
- tests/data/test1.pyc-renamed 0 additions, 0 deletionstests/data/test1.pyc-renamed
- tests/data/test2.pyc-renamed 0 additions, 0 deletionstests/data/test2.pyc-renamed
No preview for this file type
No preview for this file type