I have same problem now, and there is no uninitialized boolean attr

On Tuesday, February 7, 2012 at 11:45:29 PM UTC+8, Evan Jones wrote:
>
> On Feb 6, 2012, at 21:54 , Robby Zinchak wrote:
> > It turned out to be an uninitialized boolean.  Properly setting the 
> value in question seems to allow things to proceed normally.
>
> Ah! Interesting. So one of your .set_* properties is a boolean, and one of 
> them was uninitialized? That would do it. This was discussed previously and 
> dismissed as a "wont fix" problem, because it is hard/impossible to make 
> portable code that will test for this:
>
> http://code.google.com/p/protobuf/issues/detail?id=234
>
> Although its somewhat confusing since WireFormatLite::WriteBoolNoTag 
> contains code to try to avoid this problem, which GCC helpfully optimizes 
> away.
>
> I am not able to get the exact crash as the one you reported, but I can 
> get it to crash in MessageLite::SerializeWithCachedSizesToArray by creating 
> a boolean with a value of 0x80 (serializing to two bytes instead of one, 
> causing it to create a message larger than it expects). I can't figure out 
> how it could crash at the point you report the crash, but that doesn't 
> really matter.
>
> Glad you got it working,
>
> Evan
>
> --
> http://evanjones.ca/
>
>

-- 
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.

Reply via email to