diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-05-06 17:19:55 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-06 17:19:55 -0700 |
commit | feece24bf559506f1fdb8cd91ca939b82afdc583 (patch) | |
tree | dec768529bf649bc6b12f15b3d6ef4de1875da33 /pkg/sentry | |
parent | 7cd54c1f1437dccdf1840e8f893de06f9d1e70e6 (diff) | |
parent | 44d780aa4bd15cd5fb19151910d1f4e681084333 (diff) |
Merge pull request #2570 from lubinszARM:pr_clean
PiperOrigin-RevId: 310259686
Diffstat (limited to 'pkg/sentry')
-rw-r--r-- | pkg/sentry/arch/arch_aarch64.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/arch/arch_aarch64.go b/pkg/sentry/arch/arch_aarch64.go index 529980267..343f81f59 100644 --- a/pkg/sentry/arch/arch_aarch64.go +++ b/pkg/sentry/arch/arch_aarch64.go @@ -274,7 +274,7 @@ const ( func (s *State) PtraceGetRegSet(regset uintptr, dst io.Writer, maxlen int) (int, error) { switch regset { case _NT_PRSTATUS: - if maxlen < ptraceRegsSize { + if maxlen < registersSize { return 0, syserror.EFAULT } return s.PtraceGetRegs(dst) @@ -287,7 +287,7 @@ func (s *State) PtraceGetRegSet(regset uintptr, dst io.Writer, maxlen int) (int, func (s *State) PtraceSetRegSet(regset uintptr, src io.Reader, maxlen int) (int, error) { switch regset { case _NT_PRSTATUS: - if maxlen < ptraceRegsSize { + if maxlen < registersSize { return 0, syserror.EFAULT } return s.PtraceSetRegs(src) |