Skip to content
Snippets Groups Projects
  • Ben Kelly's avatar
    da0b9110
    uclibc++: patch bugfix erase() on derived __base_associative · da0b9110
    Ben Kelly authored
    
    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: default avatarBen Kelly <ben@benjii.net>
    da0b9110
    History
    uclibc++: patch bugfix erase() on derived __base_associative
    Ben Kelly authored
    
    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: default avatarBen Kelly <ben@benjii.net>