diff options
author | Zach Koopmans <zkoopmans@google.com> | 2021-08-30 15:32:22 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-08-30 15:35:02 -0700 |
commit | dfbcb8903ae8bd0d1ff984889f1b5cf1e041865e (patch) | |
tree | f38c3de45bb102e17971f428fed0099ac69b6a2c /pkg/syserr/BUILD | |
parent | a247e227b1f629392d0a9132dc490a6ef9ee2519 (diff) |
[syserr] Fix SIGBUS on syserr.FromError
Fix syzcaller panic SIGBUS on error handling. Done by
adding an interface, errors.GuestError, which errors can
implement in order to be compared against each other.
PiperOrigin-RevId: 393867554
Diffstat (limited to 'pkg/syserr/BUILD')
-rw-r--r-- | pkg/syserr/BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/syserr/BUILD b/pkg/syserr/BUILD index 1cd5d641d..d8c4c9613 100644 --- a/pkg/syserr/BUILD +++ b/pkg/syserr/BUILD @@ -14,6 +14,7 @@ go_library( "//pkg/abi/linux/errno", "//pkg/errors", "//pkg/errors/linuxerr", + "//pkg/safecopy", "//pkg/tcpip", "@org_golang_x_sys//unix:go_default_library", ], |