aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
author5225225 <5225225@mailbox.org>2021-12-19 20:34:52 +0000
committeriximeow <git@iximeow.net>2022-01-02 14:40:07 -0800
commitdd1e281c85cb047c6a4a05a4af0314e064cba088 (patch)
treef902946a28927a3d26c82229782306e2efa6308d /src/lib.rs
parent8dda53be56b3ddd17ed72de6a6d2262a2ba82625 (diff)
Wrap unsafe functions to catch errors in debug
Closes https://github.com/iximeow/yaxpeax-x86/issues/16
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 46bebdb..b8bd4f7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -121,6 +121,8 @@ pub use protected_mode::Arch as x86_32;
pub mod real_mode;
pub use real_mode::Arch as x86_16;
+mod safer_unchecked;
+
const MEM_SIZE_STRINGS: [&'static str; 64] = [
"byte", "word", "BUG", "dword", "ptr", "far", "BUG", "qword",
"BUG", "mword", "BUG", "BUG", "BUG", "BUG", "BUG", "xmmword",