mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-09-21 05:21:43 +00:00
continuous-integration/drone/push Build is passing
readRarListingRanged read the archive signature only to detect the RAR version, then walkRarVolume began harvesting header regions at pos = sigLen — the signature bytes themselves were never captured. The reconstructed sparse file therefore started with zero bytes instead of "Rar!", so every real unrar invocation rejected it as "not RAR archive". This silently forced every RAR archive through the expensive download+reupload fallback regardless of the source channel's forwarding permission — defeating the forward-priority path for the RAR-heavy channels it matters most for. The existing tests didn't catch this because their assertions accepted either a null or non-null result as passing, deferring real verification to production.