Repository navigation
Conversation
|
Do you have some .cab files that can be used as test cases? |
|
I wonder why the tests fail :( |
Can be avoided by restructuring all the surrounding code into nested
uhh... not sure if abandonware can be distributed as a test case?
I'll check them locally, might need even more extra checks to prevent infinite loops, in case something else runs out I guess. |
|
@jaens The existing test cases are pretty much based on abandonware... I need to check that they have not started to fail on main branch as well. |
|
All tests succeeded in #174 so I can't take in this PR in its current state. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 31 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
What this change does: Handles the same exact-volume-boundary read condition as #231. Must fix: Like #231, it can repeatedly open the same next volume when Must fix: This PR additionally removes A small shared fix in the volume-opening routine plus regression coverage is preferable to maintaining two versions of the same patch. Verdict: The reported bug matters, but do not merge this version. Fix #231 and close this as a duplicate once that fix lands. Branch update correction: The initial update used a force-pushed rebase. The original PR commits have now been restored as first-parent history with a merge commit, pushed normally without force. Both the original and previously rebased commits remain reachable. The reviewed file contents are unchanged. Review basis: main |
Restore the original contribution commits as the first-parent history. Keep the reviewed conflict resolutions and current main without rewriting published history again.
|
Closing as a duplicate of #231, which now includes the shared volume-reader fix and synthetic regression coverage in fd51518. The tests cover exact volume boundaries, missing or unrelated next-volume segments, and IS5 files whose first segment is in a later cabinet. Both the Debug/shared/bundled-MD5 and Release/static/OpenSSL test suites pass locally (25/25 each). Thank you for the original report and contribution. |
Currently, extracting IS5 CABs that split files over multiple volumes seems to fail with
bytes_to_read can't be zero, because the current volume runs out of bytes, meaningMIN(bytes_left, reader->volume_bytes_left)becomes 0 which always leads to an error inunshield_reader_read.Detect this condition and jump to opening the next volume. This is possibly related to #124 and #129, although it might not fix the latter.