[protobuf] Deserializing Corrupted data

2014-06-23 Thread ajay . sonawane
Hello,

I want to know how does protocol buffers handles corrupted data while 
de-serializing  stream. Is there any way to know if data has been corrupted.

Does protocol buffer provides any inbuilt mechanism for data integrity 
check?

Thanks,

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Deserializing Corrupted data

2014-06-23 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Jun 23, 2014 at 4:17 AM, ajay.sonaw...@gmail.com wrote:

 Hello,

 I want to know how does protocol buffers handles corrupted data while
 de-serializing  stream. Is there any way to know if data has been corrupted.

The parsing code only checks whether the data conforms to protobuf wire
format and whether there is any missing required fields. Usually these
checks are good enough. If the data is corrupted but is still in valid
protobuf wire format, protobuf has no way to know that.


 Does protocol buffer provides any inbuilt mechanism for data integrity
 check?

No.



 Thanks,

 --
 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 protobuf+unsubscr...@googlegroups.com.
 To post to this group, send email to protobuf@googlegroups.com.
 Visit this group at http://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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.