Odd errors in protobuf-c

2009-06-01 Thread Peter K.

We are using protocol buffers in an embedded application.

On the server side (protobuf-c), we are getting the error too short
after 64 bit wire type.

On the client side (VC++, modified to read the protobuf-c
implementation) we get a received packet, but it seems to be zero
bytes long.

The error seems to come from protobuf-c.c:

case PROTOBUF_C_WIRE_TYPE_64BIT:
  if (rem  8)
{
  UNPACK_ERROR ((too short after 64bit wiretype at offset
%u,
 (unsigned)(at-data)));
  goto error_cleanup_during_scan;
}
  tmp.len = 8;
  break;

But I'm not sure what it is telling us!

Any pointers appreciated!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: Odd errors in protobuf-c

2009-06-01 Thread Kenton Varda
I don't know much about protobuf-c specifically, but my guess is that it's
saying that it saw a tag with fixed64/sfixed64/double type that did not have
8 bytes after it -- i.e. the input was cut off in the middle of the value.
 Probably what is happening is your message is being cut short in transit.
 Try examining the exact bytes on both the sending and receiving end to see
if anything has been lost.

On Mon, Jun 1, 2009 at 12:29 PM, Peter K. koots...@gmail.com wrote:


 We are using protocol buffers in an embedded application.

 On the server side (protobuf-c), we are getting the error too short
 after 64 bit wire type.

 On the client side (VC++, modified to read the protobuf-c
 implementation) we get a received packet, but it seems to be zero
 bytes long.

 The error seems to come from protobuf-c.c:

case PROTOBUF_C_WIRE_TYPE_64BIT:
  if (rem  8)
{
  UNPACK_ERROR ((too short after 64bit wiretype at offset
 %u,
 (unsigned)(at-data)));
  goto error_cleanup_during_scan;
}
  tmp.len = 8;
  break;

 But I'm not sure what it is telling us!

 Any pointers appreciated!

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---