diff options
| author | serpilliere <devnull@localhost> | 2011-08-26 13:34:12 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2011-08-26 13:34:12 +0200 |
| commit | bbd7e71ada55e23fe857a7c9954687ff987dec7c (patch) | |
| tree | 5b8b21abab228129b8b2db1fab465185d27e4416 /miasm/tools/emul_lib/libcodenat_interface.c | |
| parent | 78bacd4d0dd014412a81ce8dc72ad3954bcd12e5 (diff) | |
| download | focaccia-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.c | 2 |
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; } |