gvisor/pkg/abi
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
..
linux Fix index out of bounds in tty implementation. 2019-04-03 13:00:34 -07:00
BUILD Remove license comments 2019-01-31 11:12:53 -08:00
abi.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
abi_linux.go Use correct company name in copyright header 2018-10-19 16:35:11 -07:00
flag.go Format sigaction in strace 2018-12-07 16:28:54 -08:00