STL list iterator not dereferencable
Posted: 2018-02-07T00:26:59-07:00
MagickCore::Image* images = MagickCore::CoalesceImages( first_->image(),
exceptionInfo);
// Unlink image list
unlinkImages(first_, last_);
// Ensure container is empty
coalescedImages_->clear(); // first_ invalidation after clear
// Move images to container
insertImages( coalescedImages_, images );
// Report any error
ThrowPPException( first_->quiet()); //the program crashes here.first_ invalidation
my change is ok
MagickCore::Image* images = MagickCore::CoalesceImages( first_->image(),
exceptionInfo);
// Unlink image list
unlinkImages(first_, last_); bool quiet = first_->quiet();
// Ensure container is empty
coalescedImages_->clear();
// Move images to container
insertImages( coalescedImages_, images );
// Report any error
ThrowPPException(quiet);
exceptionInfo);
// Unlink image list
unlinkImages(first_, last_);
// Ensure container is empty
coalescedImages_->clear(); // first_ invalidation after clear
// Move images to container
insertImages( coalescedImages_, images );
// Report any error
ThrowPPException( first_->quiet()); //the program crashes here.first_ invalidation
my change is ok
MagickCore::Image* images = MagickCore::CoalesceImages( first_->image(),
exceptionInfo);
// Unlink image list
unlinkImages(first_, last_); bool quiet = first_->quiet();
// Ensure container is empty
coalescedImages_->clear();
// Move images to container
insertImages( coalescedImages_, images );
// Report any error
ThrowPPException(quiet);