Skip to content

Commit ecfe14d

Browse files
committed
ARM: fix NaClSysTestInfoLeak misaligned load
This fixes a NaCl syscall that only exists for a test. Fixes the run_infoleak_test test target on ARM.
1 parent 1397b4c commit ecfe14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trusted/service_runtime/nacl_syscall_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ int32_t NaClSysTestInfoLeak(struct NaClAppThread *natp) {
881881
* Put some interesting bits into the VFP registers.
882882
*/
883883

884-
static const char manybytes[64] =
884+
__attribute__((aligned(4))) static const char manybytes[64] =
885885
"Sensitive information must not be leaked to untrusted code!!!!\n";
886886

887887
__asm__ volatile("vldm %0, {d0-d7}" :: "r" (manybytes) :

0 commit comments

Comments
 (0)