Re: [Boost-bugs] [Boost C++ Libraries] #3095: bug in automatic resizing of the bucket array

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3095: bug in automatic resizing of the bucket array
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-25 19:09:49


#3095: bug in automatic resizing of the bucket array
------------------------------------+---------------------------------------
 Reporter: roger.ran@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: asio
  Version: Boost 1.39.0 | Severity: Regression
 Keywords: |
------------------------------------+---------------------------------------

Comment(by Andrew Kurushin <ajax16384@…>):

 here is repro code (vs2005sp1 x86):
 #include "boost/asio/detail/hash_map.hpp"
 void Test()
 {
     typedef boost::asio::detail::hash_map<int, int> test_type;
     test_type tester;
     int badPattern[] = {
         0x668d50,
         0x66e168,
         0x669b80
     };
     for (int i = 0; i < 3; i++)
         tester.insert(test_type::value_type(badPattern[i], i));
     for (int i = 0; i < 3; i++) {
         test_type::iterator my = tester.find(badPattern[i]);
         if (my == tester.end()) {
             printf("there is my value?"); // will be executed for second
 value
         }
     }
     return 0;
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3095#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC