From e46bb8643a8491e0c58c7ccce3ef60a72ef13b5c Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Thu, 4 Nov 2021 10:01:13 +0100 Subject: [PATCH] Fix try_into in PyAny::cast_as in libafl_qemu --- libafl_qemu/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libafl_qemu/src/lib.rs b/libafl_qemu/src/lib.rs index 482f1fed5c..9a1b85cb7d 100644 --- a/libafl_qemu/src/lib.rs +++ b/libafl_qemu/src/lib.rs @@ -151,7 +151,7 @@ pub fn python_module(py: Python, m: &PyModule) -> PyResult<()> { if any.is_none() { SyscallHookResult::new(None) } else { - let a: Result<&PyInt, _> = any.try_into(); + let a: Result<&PyInt, _> = any.cast_as(); if let Ok(i) = a { SyscallHookResult::new(Some( i.extract().expect("Invalid syscall hook return value"),