rdiff (librsync 2.2.0) hangs on large files

After the latest update, rdiff delta hangs if used on files larger than about 5G. Here's how to reproduce the problem:

dd if=/dev/urandom of=testfile bs=1M count=1 seek=5500
rdiff signature testfile testfile.sig
rdiff delta testfile.sig - - testfile.delta

Which hangs after writing 11264000 bytes into testfile.delta