Skip to content
Snippets Groups Projects
Verified Commit fe83933b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Bugfix: undefined behaviour in AbstractExternalFunctionNode::prepareForDerivation()

Input and output ranges should not overlap when calling std::set_union(),
otherwise the behaviour is undefined.

It seems that in this precise case the computation would still be
correct (though inefficient), because of the properties of std::set or because
of the specific implementation in libstdc++. But it’s better to be on the safe
side.
parent 41052ccb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment