The mpatch_apply function in mpatch.c in Mercurial before 4.6.1 incorrectly proceeds in cases where the fragment start is past the end of the original data, aka OVE-20180430-0004.
"https://github.com/pypa/advisory-database/blob/main/vulns/mercurial/PYSEC-2018-88.yaml"