gvisor/pkg/abi/linux
Kevin Krakauer 82529becae Fix index out of bounds in tty implementation.
The previous implementation revolved around runes instead of bytes, which caused
weird behavior when converting between the two. For example, peekRune would read
the byte 0xff from a buffer, convert it to a rune, then return it. As rune is an
alias of int32, 0xff was 0-padded to int32(255), which is the hex code point for
?. However, peekRune also returned the length of the byte (1). When calling
utf8.EncodeRune, we only allocated 1 byte, but tried the write the 2-byte
character ?.

tl;dr: I apparently didn't understand runes when I wrote this.

PiperOrigin-RevId: 241789081
Change-Id: I14c788af4d9754973137801500ef6af7ab8a8727
2019-04-03 13:00:34 -07:00
..
BUILD Remove license comments 2019-01-31 11:12:53 -08:00
aio.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
ashmem.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
audit.go Add ARM64 support to pkg/abi/linux 2018-12-04 12:24:07 -08:00
binder.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
bpf.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
capability.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
dev.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
elf.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
errors.go Rename linux.Errno.Error to linux.Errno.String. 2019-01-03 13:53:43 -08:00
eventfd.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
exec.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
fcntl.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
file.go Implement memfd_create. 2019-03-26 16:16:57 -07:00
fs.go Remove fs.Handle, ramfs.Entry, and all the DeprecatedFileOperations. 2019-01-14 20:34:28 -08:00
futex.go Priority-inheritance futex implementation 2019-03-05 23:40:18 -08:00
inotify.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
ioctl.go Add more unimplemented syscall events 2018-10-20 11:14:23 -07:00
ip.go Add unsupported syscall events for get/setsockopt 2018-11-20 14:04:12 -08:00
ipc.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
limits.go Automated rollback of changelist 226224230 2018-12-21 08:23:34 -08:00
linux.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
mm.go Automated rollback of changelist 226224230 2018-12-21 08:23:34 -08:00
netdevice.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
netlink.go Add unsupported syscall events for get/setsockopt 2018-11-20 14:04:12 -08:00
netlink_route.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
poll.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
prctl.go Add more unimplemented syscall events 2018-10-20 11:14:23 -07:00
ptrace.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
rusage.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
sched.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
seccomp.go Add BPFAction type with Stringer 2018-12-18 10:28:28 -08:00
sem.go Add semctl(GETPID) syscall 2019-03-01 10:57:02 -08:00
shm.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
signal.go Format sigaction in strace 2018-12-07 16:28:54 -08:00
socket.go Plumb IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP to netstack. 2019-02-07 23:15:23 -08:00
tcp.go Implement SO_KEEPALIVE, TCP_KEEPIDLE, and TCP_KEEPINTVL. 2018-12-21 13:13:45 -08:00
time.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
timer.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
tty.go Fix index out of bounds in tty implementation. 2019-04-03 13:00:34 -07:00
uio.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
utsname.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00