diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-12-20 16:59:14 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-20 16:59:14 +0000 |
commit | 50ec3761fdbcae838453770fa6bf8e7e90fe53a6 (patch) | |
tree | da9b5918f4ddf0233818718f5d3e3f468a822a5e | |
parent | 99cfc711c6999d2c47c2498e8d9a10b4b28e7fcd (diff) | |
parent | 822d847ccaa1e6016b818bee289b5e33335f9fee (diff) |
Merge release-20191213.0-37-g822d847 (automated)
-rwxr-xr-x | pkg/sentry/strace/select.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/strace/select.go b/pkg/sentry/strace/select.go index dea309fda..c77d418e6 100755 --- a/pkg/sentry/strace/select.go +++ b/pkg/sentry/strace/select.go @@ -36,6 +36,9 @@ func fdsFromSet(t *kernel.Task, set []byte) []int { } func fdSet(t *kernel.Task, nfds int, addr usermem.Addr) string { + if nfds < 0 { + return fmt.Sprintf("%#x (negative nfds)", addr) + } if addr == 0 { return "null" } |