Boost logo

Boost :

From: Jarl Lindrud (jlindrud_at_[hidden])
Date: 2006-08-20 12:15:39


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk