uclibc++: patch bugfix erase() on derived __base_associative
authorBen Kelly <ben@benjii.net>
Tue, 7 Feb 2017 08:56:47 +0000 (10:56 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 1 Mar 2017 19:37:36 +0000 (20:37 +0100)
commite1e9d27655bd0fd93dd09f3de907a03c96c59f55
tree5e82be3793e02ed55bd2363e32b51d312faf1224
parente19fbd32974dec3f01b8882413977aff0c7446c1
uclibc++: patch bugfix erase() on derived __base_associative

When calling erase() on a containers derived from __base_associative
(e.g. multimap) and providing a pair of iterators a segfault will
occur.

Example code to reproduce:

typedef std::multimap<int, int> testmap;
testmap t;
t.insert(std::pair<int, int>(1, 1));
t.insert(std::pair<int, int>(2, 1));
t.insert(std::pair<int, int>(3, 1));
t.erase(t.begin(), t.end());

Signed-off-by: Ben Kelly <ben@benjii.net>
package/libs/uclibc++/patches/050-Bugfix-erase-on-derived-__base_associative.patch [new file with mode: 0644]