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.
{
"github_reviewed": true,
"severity": "HIGH",
"cwe_ids": [
"CWE-20"
],
"nvd_published_at": "2018-07-06T00:29:00Z",
"github_reviewed_at": "2024-05-01T17:03:26Z"
}