Merge pull request #495 from RustSec/alex-patch-1

Added advisory for pyo3 reference counting issue
This commit is contained in:
Sergey "Shnatsel" Davidoff
2020-11-28 22:17:30 +01:00
committed by GitHub

View File

@@ -0,0 +1,17 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "pyo3"
date = "2020-11-28"
url = "https://github.com/PyO3/pyo3/pull/1297"
keywords = ["memory-corruption"]
[versions]
patched = [">= 0.12.4"]
unaffected = ["< 0.12.0"]
```
# Reference counting error in `From<Py<T>>`
A bug in `From<Py<T>>` would lead to an extra reference count decrement, often
leading to use-after-free issues.