diff options
author | Swaroop Sridhar <swaroops@microsoft.com> | 2016-06-09 14:23:35 -0700 |
---|---|---|
committer | Swaroop Sridhar <swaroops@microsoft.com> | 2016-06-09 14:23:35 -0700 |
commit | 40150200e231eb3d5c5eee9ee9173abf7ecb15a1 (patch) | |
tree | 2ea1574e5a95edc9dbf79ce91bc33a519b18e245 /src/vm/arm | |
parent | 3a4711b18816c4acd526d63cc1690a5f87dd58a9 (diff) | |
download | coreclr-40150200e231eb3d5c5eee9ee9173abf7ecb15a1.tar.gz coreclr-40150200e231eb3d5c5eee9ee9173abf7ecb15a1.tar.bz2 coreclr-40150200e231eb3d5c5eee9ee9173abf7ecb15a1.zip |
ARM64: Don't track LR as part of NV-Context
The _pc and _sp fields actually refer to the caller's PC and SP values.
So, remove read/writes of LR in captureX19_X29 array of ARM64 MachState.
This change fixes a buffer overflow problem.
Diffstat (limited to 'src/vm/arm')
-rw-r--r-- | src/vm/arm/gmscpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/arm/gmscpu.h b/src/vm/arm/gmscpu.h index d6fd83da65..dee60633ad 100644 --- a/src/vm/arm/gmscpu.h +++ b/src/vm/arm/gmscpu.h @@ -57,7 +57,7 @@ protected: PTR_DWORD _R4_R11[8]; // Preserved registers - TADDR _pc; + TADDR _pc; // program counter after the function returns TADDR _sp; // stack pointer after the function returns BOOL _isValid; |