[ARM/Linux] Validate memory using ldrb instead of ldr (#12191)
authorJonghyun Park <parjong@gmail.com>
Fri, 9 Jun 2017 10:48:49 +0000 (19:48 +0900)
committerJan Kotas <jkotas@microsoft.com>
Fri, 9 Jun 2017 10:48:49 +0000 (03:48 -0700)
src/vm/arm/memcpy.S

index b978860..0c2c26e 100644 (file)
@@ -22,8 +22,8 @@
         PROLOG_PUSH  "{r7, lr}"
         PROLOG_STACK_SAVE r7
         
-        ldr r3, [r0]
-        ldr r3, [r1]
+        ldrb r3, [r0]
+        ldrb r3, [r1]
         
         blx C_FUNC(memcpy)