Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removeContradiction() Avoid use-after-free on multiple remove
As reported in https://sourceforge.net/p/cppcheck/discussion/general/thread/fa43fb8ab1/ removeContradiction() minValue/maxValue.remove(..) can access free'd memory as it removes all matching values by iterating over the complete list. Creating a full copy instead of a reference avoids this issue. Signed-off-by: Dirk Müller <[email protected]>
- Loading branch information