Mercurial > hg
diff contrib/fuzz/fuzzutil.h @ 42846:01d3ce3281cf
rust-cpython: fix unsafe inner(py).borrow_mut() calls
Since self.inner is managed by PySharedState, it must not be borrowed
mutably through the RefCell interface. Otherwise, the underlying object
could be mutated while a reference is leaked to Python world.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Sep 2019 17:35:14 +0900 |
parents | 36d55f90e2a3 |
children | 6f5c352f41b6 |