Skip to content

Potential bug in UserDataReader that might never present itself #137

@lan13005

Description

@lan13005

AmpToolsInterface::resetConfigurationInfo calls AmpToolsInterface::clear

clear deletes DataReader objects stored in m_uniqueDataSets

m_uniqueDataSets stores DataReaders created by m_userDataReaders-> newDataReader

Inside UserDataReader.h the m_dataReaderInstances map needs to be cleared when AmpToolsInterface is cleared otherwise the objects it points to after the first (or second pass?) has been deleted and will not be created again when newDataReader is called again. This will results in a corrupted memory error.

Why would someone call resetConfigurationInfo multiple times you ask? Not in any of the standard tools. I do it with these nifty fits to reset the state multiple times to find a good starting position

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions