MaskPredicate in detectors.cpp possible undefined behavior (Bug #419)
Description
MaskPredicate has a broken assignment operator. Either it is never used, in which case it's potentially dangerous and should be removed, or it is actually used in which case the semantics are broken and it can easily produce undefined behavior. The proper fix in my opinion would be to replace the reference in MaskPredicate by a pointer, in which case everything would automagically work correctly.
Associated revisions
made MaskPredicate safer (#419)
History
Updated by Maria Dimashova over 14 years ago
Fixed in r4056. Matrix header is copied now, assignment operator was removed.
Thanks.
- Status changed from Open to Done
- (deleted custom field) set to fixed