dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

bug in FastJson2ObjectInput.readBytes and FastJson2ObjectOutput.writeBytes

Open bringwu opened this issue 1 year ago • 2 comments

The type of length is int, but only a single byte is being read and written.

企业微信截图_17065021082675

企业微信截图_17065021626847

bringwu avatar Jan 29 '24 04:01 bringwu

It should be changed to readLength and writeLength. BTW, org.apache.dubbo.common.serialize.DataInput#readBytes has no usage now.

AlbumenJ avatar Jan 31 '24 02:01 AlbumenJ

It should be changed to readLength and writeLength. BTW, org.apache.dubbo.common.serialize.DataInput#readBytes has no usage now.

org.apache.dubbo.common.serialize.DataInput#writeBytes ,It doesn't seem to have been used either

tritone-l avatar Mar 12 '24 02:03 tritone-l

Fixed in #13968

finefuture avatar Mar 21 '24 08:03 finefuture