Skip to content

Commit

Permalink
fix incorrect fi.funcdata[_FUNCDATA_StackObjects]
Browse files Browse the repository at this point in the history
  • Loading branch information
pkujhd committed Mar 9, 2020
1 parent 499d1eb commit 7ab2230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dymcode.1.12.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func AddStackObject(code *CodeReloc, fi *funcInfoData, seg *segment, symPtr map[string]uintptr) {
if len(fi.funcdata) > _FUNCDATA_StackObjects {
if len(fi.funcdata) > _FUNCDATA_StackObjects && fi.funcdata[_FUNCDATA_StackObjects] != 0xFFFFFFFFF {
stackObjectRecordSize := unsafe.Sizeof(stackObjectRecord{})
b := code.Mod.stkmaps[fi.funcdata[_FUNCDATA_StackObjects]]
n := *(*int)(unsafe.Pointer(&b[0]))
Expand Down

0 comments on commit 7ab2230

Please sign in to comment.