You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We (NixOS) are just in the process of upgrading from 2.2.2 to 2.3.3 and the firmware.zip test is failing.
FAIL: Test: Open firmware.zip, scan for signatures
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nix/store/7vl0qcb8gkxllmrzgsdvnw3yyca51rcb-python3.9-nose-1.3.7/lib/python3.9/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/build/source/testing/tests/test_firmware_zip.py", line 32, in test_firmware_zip
eq_(len(scan_result[0].results), len(expected_results))
AssertionError: 4 != 2
These are the descriptions of the scan_result:
Zip archive data, at least v1.0 to extract, name: dir655_revB_FW_203NA/
Zip archive data, at least v2.0 to extract, compressed size: 6395868, uncompressed size: 6422554, name: dir655_revB_FW_203NA/DIR655B1_FW203NAB02.bin
Zip archive data, at least v2.0 to extract, compressed size: 14243, uncompressed size: 61440, name: dir655_revB_FW_203NA/dir655_revB_release_notes_203NA.doc
End of Zip archive, footer length: 22
and this is what was expected:
expected_results= [
[0, 'Zip archive data, at least v1.0 to extract, name: dir655_revB_FW_203NA/'],
[6410581, 'End of Zip archive, footer length: 22'],
]
Activity
python3Packages.binwalk: revert zip test breakage
python3Packages.binwalk: revert zip test breakage
gyakovlev commentedon Oct 28, 2021
we hit same on gentoo. reverting second hunk, that touches
testing/tests/test_firmware_zip.pywas enough to fix, we did not revert the traversal test.app-misc/binwalk: add 2.3.3, enable py3.10