There were a few related fixes actually in the edge case of short reads on seekable inputs. I've often wanted an easy test case for that, and I just found one with the /sys/kernel/btf/vmlinux file, which I've used in the associated tests.
cheers, Padraig
