Could you post some example code showing the problem? I would guess that
it's an issue with how your code is framing the message. Serialized protos
do not indicate their own length, so when you parse a message you have to
know how many bytes to expect. If you try to parse the wrong number of
bytes, you can inadvertently parse the wrong thing or parsing might fail
entirely.

On Mon, Feb 5, 2018 at 5:04 PM, hce h <[email protected]> wrote:

> Hi,
>
> I am running protobuf v2 C++ library on Debian 8 ARM processor, I can only
> send a text file in bytes field about 17797 bytes, if the file size is more
> than 17797 bytes, the file will be corrupted and chopped off to 17797
> bytes. Are there any workarounds to fix this issue? The detailed the
> package information:
>
> Package: libprotobuf9
> Source: protobuf
> Version: 2.6.1-1
> Installed-Size: 866
> Maintainer: Robert Edmonds <[email protected]>
> Architecture: armhf
> Depends: libc6 (>= 2.4), libgcc1 (>= 1:4.4.0), libstdc++6 (>= 4.9), zlib1g
> (>= 1:1.1.4)
> Size: 312100
> SHA256: 7e6a4ffa5c4ccea20a339425c5fe51c0954b6f222960ac87e26d9d7ae5b3e79b
> SHA1: 807d3ed197797546f87d050cf02ea3d3c96fc4ee
> MD5sum: 58bfed0950ad07ef1b06d82a42f24eae
> Description: protocol buffers C++ library
> Description-md5: c69f5af146ab9bc64e44b912e5af457e
> Multi-Arch: same
> Homepage: https://code.google.com/p/protobuf/
> Tag: implemented-in::c++, role::shared-lib
> Section: libs
> Priority: optional
> Filename: pool/main/p/protobuf/libprotobuf9_2.6.1-1_armhf.deb
>
> Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to