Ecut 7.2: Fix Crack

[Chunker] EnableStrictMode = true // file: src/tests/file_chunker_test.cpp TEST(FileChunker, ChunkExactMultiple) // Create a temporary file of 256 KB (exact multiple of 64 KB) const std::string tmpPath = createTempFile(256 * 1024, /*pattern=*/0xAB); FileChunker chunker(tmpPath, 64 * 1024);

// Expect exactly 4 chunks, no short reads EXPECT_EQ(chunker.totalChunks(), 4u); Ecut 7.2 Fix Crack

cd build && ctest -R FileChunker_ChunkExactMultiple -V All tests must pass ( 0 failures ) before packaging. 7.1. Pre‑Deployment Checklist | Item | Owner | Status | |------|-------|--------| | Verify production environment matches Ecut 7.2 baseline | Release Manager | ☐ | | Backup current binary ( /opt/ecut/bin/ecutd ) | Ops | ☐ | | Ensure ECUT_ENABLE_STRICT_CHUNKER is disabled on staging (to avoid double‑logging) | Config Owner | ☐ | | Run regression test suite (full) | QA | ☐ | | Confirm no open tickets rely on the old off‑by‑one behaviour (rare) | Product Owner | ☐ | 7.2. Binary Roll‑out (Hot‑Fix) # 1. Download the patch package wget https://downloads.ecut.io/7.2.1/ecut-7.2.1-patch.tar.gz -O /tmp/ecut-patch.tgz Binary Roll‑out (Hot‑Fix) # 1

// Validate content integrity std::vector<std::byte> out; chunker.readAll(out); EXPECT_EQ(out.size(), 256 * 1024); for (size_t i = 0; i < out.size(); ++i) EXPECT_EQ(out[i], std::byte0xAB); 256 * 1024)