Skip to content
Snippets Groups Projects
Commit c761d7fa authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "linux-ramdump-parser-v2: Bounds check stackunwinding"

parents e5a85927 cb54bb8f
No related branches found
No related tags found
No related merge requests found
...@@ -109,6 +109,12 @@ class RamDump(): ...@@ -109,6 +109,12 @@ class RamDump():
def unwind_frame_generic64(self, frame, trace=False): def unwind_frame_generic64(self, frame, trace=False):
fp = frame.fp fp = frame.fp
low = frame.sp
mask = (self.ramdump.thread_size) - 1
high = (low + mask) & (~mask)
if (fp < low or fp > high or fp & 0xf):
return
frame.sp = fp + 0x10 frame.sp = fp + 0x10
frame.fp = self.ramdump.read_word(fp) frame.fp = self.ramdump.read_word(fp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment