|
From: | Askar Safin |
Subject: | Re: The format can easily miss truncation! (was: Docs still unclear on integrity) |
Date: | Tue, 14 Jun 2022 07:34:43 +0300 |
Of course! ==== #!/bin/bash set -e echo a | lzip > a.lz echo b | lzip > b.lz cat a.lz b.lz > ab.lz # Now let's truncate ab.lz (to simulate unsuccessful network transfer) head -c 38 < ab.lz > trunc.lz lzip -d trunc.lz exit 0 ====
[Prev in Thread] | Current Thread | [Next in Thread] |