Corrupt the last byte of a segment buffer (flips the footer CRC).
(mut bytes: Vec<u8>)
| 72 | |
| 73 | /// Corrupt the last byte of a segment buffer (flips the footer CRC). |
| 74 | fn corrupt_last_byte(mut bytes: Vec<u8>) -> Vec<u8> { |
| 75 | let last = bytes.len() - 1; |
| 76 | bytes[last] ^= 0xFF; |
| 77 | bytes |
| 78 | } |
| 79 | |
| 80 | // ── columnar corruption ─────────────────────────────────────────────────────── |
| 81 |
no test coverage detected