[zeromq-dev] [PATCH] decoder asserts

Christian Gudrian christian at gudrian.org
Wed Oct 27 11:10:03 CEST 2010


Am 27.10.2010 10:49, schrieb Christian Gudrian:

> Wouldn't it be wise to check for a null method pointer_before_
> dereferencing it?

Oh, I see that a null next pointer after the method call is an 
indication for a decoding error. However, since next gets initialized to 
null in the constructor the pointer _might_ still be null when its 
dereferenced at first (in case a derived class did to call next_step).

Christian



More information about the zeromq-dev mailing list