Mercurial > hg
comparison tests/test-ancestor.py.out @ 40813:884321cd26c3 stable
rust: fix possible out-of-bounds read through index_get_parents()
index_get_parents() is an internal function, which doesn't check if the
specified rev is valid. If rustlazyancestors() were instantiated with an
invalid stoprev, it would access to invalid memory region.
This is NOT a security fix as there's no Python code triggering the bug,
but included in this series to not give a notion about the memory issue
fixed by the previous patch.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 28 Oct 2018 21:29:04 +0900 |
parents | bdb177923291 |
children | d097dd0afc19 |
comparison
equal
deleted
inserted
replaced
40812:9cdd525d97b2 | 40813:884321cd26c3 |
---|