Subtracting a huge negative offset from the current position could overflow it, which was correctly detected as undefined behaviour by UBSAN. Credit to OSS-Fuzz: this solves its issue 4388.
dfd03f5