Skip to content

Commit 875573a

Browse files
committed
sys/targets: determine DataOffset by Arch
It is incorrect to consider VMArch here - if we are running a 32 bit app on a 64 bit kernel, the 64 bit arch is not of interest here. Also, VMArch is not set for every Target, what led to problems when running arm64 fuzzing on an arm64 host.
1 parent 4e8d385 commit 875573a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/targets/targets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ func initTarget(target *Target, OS, arch string) {
782782

783783
func (target *Target) defaultDataOffset() uint64 {
784784
if target.PtrSize == 8 {
785-
if target.VMArch == ARM64 {
785+
if target.Arch == ARM64 {
786786
// On ARM64, in many cases we can't use many enough bits of the address space.
787787
// Let's use the old value for now. It's also problematic (see #5770), but it's
788788
// lesser of the two evils.

0 commit comments

Comments
 (0)