lzip-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The format can easily miss truncation! (was: Docs still unclear on i


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
====



reply via email to

[Prev in Thread] Current Thread [Next in Thread]