about summary refs log tree commit diff stats
path: root/miasm/tools/emul_lib/libcodenat_interface.c
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2011-08-26 13:34:12 +0200
committerserpilliere <devnull@localhost>2011-08-26 13:34:12 +0200
commitbbd7e71ada55e23fe857a7c9954687ff987dec7c (patch)
tree5b8b21abab228129b8b2db1fab465185d27e4416 /miasm/tools/emul_lib/libcodenat_interface.c
parent78bacd4d0dd014412a81ce8dc72ad3954bcd12e5 (diff)
downloadfocaccia-miasm-bbd7e71ada55e23fe857a7c9954687ff987dec7c.tar.gz
focaccia-miasm-bbd7e71ada55e23fe857a7c9954687ff987dec7c.zip
explicit error whil vm_get_mem fails
Diffstat (limited to 'miasm/tools/emul_lib/libcodenat_interface.c')
-rw-r--r--miasm/tools/emul_lib/libcodenat_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/tools/emul_lib/libcodenat_interface.c b/miasm/tools/emul_lib/libcodenat_interface.c
index 5482d931..56284aa2 100644
--- a/miasm/tools/emul_lib/libcodenat_interface.c
+++ b/miasm/tools/emul_lib/libcodenat_interface.c
@@ -467,7 +467,7 @@ PyObject* _vm_get_str(PyObject *addr, PyObject *item_len)
     while (my_size){
 	    mpn = get_memory_page_from_address(buf_addr);
 	    if (!mpn){
-		    printf("cannot find page off %X\n", buf_addr);
+		    PyErr_SetString(PyExc_RuntimeError, "cannot find address");
 		    return 0;
 	    }