summaryrefslogtreecommitdiff
path: root/packaging/poison2.patch
blob: b2f985bd69aa3ae57db0d4725df2a0d6e8f9555e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 //////////////////////////////////