DescriptionIn json.NewDecoder: if the paramter is also a io.ByteReader, then only read
one byte each time to avoid "over-feeding".
Added a test case to test if the Decoder will over feeding. (Nearly a
verbatim copy from jdnurmi@qwe.cc, the reporter of issue 1955)
Fixes issue 1955
Patch Set 1 #Patch Set 2 : diff -r a3a707ba21f5 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r b6e94b31350e https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|