]> Cypherpunks repositories - gostls13.git/commit
Continuation of issue 221 fix. When 8g or 6g or 5g are called with a
authorCharles L. Dorian <cldorian@gmail.com>
Wed, 9 Dec 2009 19:56:45 +0000 (11:56 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 9 Dec 2009 19:56:45 +0000 (11:56 -0800)
commit3ca1b1d27f6bd72dac74ba9e696c002998e54ec5
treeb826d1b183133fd892e8d9598bf52b38e72a5c44
parent8a5b76ce5ca65a4606e8c141c1f18a999d484a42
Continuation of issue 221 fix. When 8g or 6g or 5g are called with a
UTF-8 string, Yconv() converts it into an octal sequence. If the
string converted to more than 30 bytes, the str buffer would
overflow. For example, 4 Greek runes became 32 bytes, 3 Hiragana
runes became 36 bytes, and 2 Gothic runes became 32 bytes. In
8l, 6l and 5l the function is Sconv(). For some reason, only 5l uses
the constant STRINGSZ (defined as 200) for the buffer size.

R=rsc
https://golang.org/cl/168045
src/cmd/5g/list.c
src/cmd/6c/list.c
src/cmd/6g/list.c
src/cmd/8c/list.c
src/cmd/8g/list.c