uclibc++: patch bugfix erase() on derived __base_associative
authorBen Kelly <ben@benjii.net>
Tue, 7 Feb 2017 08:56:47 +0000 (10:56 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 9 Feb 2017 11:26:55 +0000 (12:26 +0100)
commitda0b9110fc783245aaa88ae6ed28aa6d5fe1bdea
tree8a4ab237bb9608499d9bc60a54ed2df02779642e
parenta9d347c11c34e48d17e1a4902a56d1f2f577bfab
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]