github agiledragon/gomonkey v2.14.3
Fix ARM64 trampoline clobbering R10 (11th argument slot)

4 hours ago
  • Fix a SIGBUS on darwin/arm64 and SIGSEGV on linux/arm64 when the jump trampoline overwrote R10, which is the 11th integer argument slot in Go's ARM64 ABI
  • buildJmpDirective now uses x17 (platform scratch / REGRT2) instead of x10, so arguments that land in R10 (for example a flattened struct plus an any data word) are no longer replaced with the mock code address

Reference: #189

Don't miss a new gomonkey release

NewReleases is sending notifications on new releases.