Mercurial > hg
diff mercurial/cext/revlog.c @ 41129:074c72a38423
merge with stable
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 07 Jan 2019 19:03:23 -0500 |
parents | 38e88450138c 7542466b94e2 |
children | 4948b327d3b9 |
line wrap: on
line diff
--- a/mercurial/cext/revlog.c Mon Jan 07 15:25:41 2019 -0800 +++ b/mercurial/cext/revlog.c Mon Jan 07 19:03:23 2019 -0500 @@ -992,6 +992,13 @@ rev, result); return -2; } + if (result < -1) { + PyErr_Format( + PyExc_ValueError, + "corrupted revlog, revision base out of range: %d, %d", + rev, result); + return -2; + } return result; }