
20 Aug
2006
20 Aug
'06
4:15 p.m.
Felipe Magno de Almeida <felipe.m.almeida <at> gmail.com> writes:
On 8/19/06, Jarl Lindrud <jlindrud <at> hotmail.com> wrote:
Hi,
RCF, a C++ middleware framework, supports using Boost Serialization for serialization of data structures. One of my user's reported a serialization
bug
to me, which I finally boiled down into the following piece of code:
Why there is so many dereferencing of null pointers in the example? Aren't such code illegal and relying in undefined behavior?
The compiler doesn't care about derefencing of null pointers, that's a runtime issue. The point is that the bug is being triggered by code that is never executed. Regards, Jarl.