diff options
Diffstat (limited to 'packaging/poison2.patch')
-rw-r--r-- | packaging/poison2.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packaging/poison2.patch b/packaging/poison2.patch new file mode 100644 index 0000000000..b2f985bd69 --- /dev/null +++ b/packaging/poison2.patch @@ -0,0 +1,25 @@ +From 81df4e81eb51a01f9ba583cd77acf3bac6e6e77e Mon Sep 17 00:00:00 2001 +From: Jonghyun Park <parjong@gmail.com> +Date: Wed, 2 Aug 2017 14:11:26 +0900 +Subject: [PATCH] Use 'udf 0xff' instead of 'bkpt 0xbe' as a poison (#13152) + +--- + src/vm/arm/stubs.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/vm/arm/stubs.cpp b/src/vm/arm/stubs.cpp +index 39b5937129a..05ffed49da7 100644 +--- a/src/vm/arm/stubs.cpp ++++ b/src/vm/arm/stubs.cpp +@@ -2524,8 +2524,8 @@ void UMEntryThunkCode::Encode(BYTE* pTargetCode, void* pvSecretParam) + + void UMEntryThunkCode::Poison() + { +- // Insert 'bkpt 0x00be' at the entry point +- m_code[0] = 0xbebe; ++ // Insert 'udf 0xff' at the entry point ++ m_code[0] = 0xdeff; + } + + ///////////////////////////// UNIMPLEMENTED ////////////////////////////////// + |