gvisor/pkg
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
..
abi Fix index out of bounds in tty implementation. 2019-04-03 13:00:34 -07:00
amutex Remove license comments 2019-01-31 11:12:53 -08:00
atomicbitops Remove license comments 2019-01-31 11:12:53 -08:00
binary Remove license comments 2019-01-31 11:12:53 -08:00
bits Remove license comments 2019-01-31 11:12:53 -08:00
bpf Remove license comments 2019-01-31 11:12:53 -08:00
compressio Remove license comments 2019-01-31 11:12:53 -08:00
control Remove license comments 2019-01-31 11:12:53 -08:00
cpuid Automated rollback of changelist 234892473 2019-03-26 17:27:48 -07:00
dhcp Resolve stringer TODO 2019-03-25 14:59:58 -07:00
eventchannel Remove license comments 2019-01-31 11:12:53 -08:00
fd Keep FilePayloads open on server side until after RPC completed. 2019-02-08 10:51:24 -08:00
fdnotifier Remove license comments 2019-01-31 11:12:53 -08:00
gate Remove license comments 2019-01-31 11:12:53 -08:00
ilist Remove license comments 2019-01-31 11:12:53 -08:00
linewriter Remove license comments 2019-01-31 11:12:53 -08:00
log Remove license comments 2019-01-31 11:12:53 -08:00
metric Remove license comments 2019-01-31 11:12:53 -08:00
p9 Fix typo 2019-02-28 18:47:13 -08:00
rand Remove license comments 2019-01-31 11:12:53 -08:00
refs Remove license comments 2019-01-31 11:12:53 -08:00
seccomp Add profiling commands to runsc 2019-03-11 11:47:30 -07:00
secio Remove license comments 2019-01-31 11:12:53 -08:00
segment Remove license comments 2019-01-31 11:12:53 -08:00
sentry Fix index out of bounds in tty implementation. 2019-04-03 13:00:34 -07:00
sleep Remove license comments 2019-01-31 11:12:53 -08:00
state Remove license comments 2019-01-31 11:12:53 -08:00
syserr Implement IP_MULTICAST_LOOP. 2019-03-08 15:49:17 -08:00
syserror Priority-inheritance futex implementation 2019-03-05 23:40:18 -08:00
tcpip Add a raw socket transport endpoint and use it for raw ICMP sockets. 2019-04-02 11:13:49 -07:00
tmutex Remove license comments 2019-01-31 11:12:53 -08:00
unet Internal change. 2019-02-24 17:31:59 -08:00
urpc Internal change. 2019-02-08 14:14:14 -08:00
waiter gvisor: convert ilist to ilist:generic_list 2019-04-01 12:53:27 -07:00