]> arthur.barton.de Git - bup.git/commit
tests: vint: test EOFError after first byte
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 29 Jan 2020 19:09:49 +0000 (20:09 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Feb 2020 18:14:49 +0000 (12:14 -0600)
commit440135573f26e1f468fb173c96b60f3bded77840
tree52dca8315b6977f7df4ff18d43eabb5aea4093ce
parent51476a384daabaa6e2700859d2e4863ec7ca0284
tests: vint: test EOFError after first byte

Since the first byte is handled separately for the sign bit,
validate that we also get an EOFError if there are a few
bytes but the last one also has the 0x80 bit set.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tvint.py