diff options
Diffstat (limited to 'pkg/sentry/arch')
-rw-r--r-- | pkg/sentry/arch/arch_abi_autogen_unsafe.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/arch/arch_abi_autogen_unsafe.go b/pkg/sentry/arch/arch_abi_autogen_unsafe.go index 98cc11f75..26572d6a6 100644 --- a/pkg/sentry/arch/arch_abi_autogen_unsafe.go +++ b/pkg/sentry/arch/arch_abi_autogen_unsafe.go @@ -63,6 +63,7 @@ func (s *SignalAct) MarshalUnsafe(dst []byte) { if s.Mask.Packed() { safecopy.CopyIn(dst, unsafe.Pointer(s)) } else { + // Type SignalAct doesn't have a packed layout in memory, fallback to MarshalBytes. s.MarshalBytes(dst) } } @@ -72,6 +73,7 @@ func (s *SignalAct) UnmarshalUnsafe(src []byte) { if s.Mask.Packed() { safecopy.CopyOut(unsafe.Pointer(s), src) } else { + // Type SignalAct doesn't have a packed layout in memory, fallback to UnmarshalBytes. s.UnmarshalBytes(src) } } |