[Boost-bugs] [Boost C++ Libraries] #8345: 0 bytes after a block of size 8 alloc'd

Subject: [Boost-bugs] [Boost C++ Libraries] #8345: 0 bytes after a block of size 8 alloc'd
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-27 16:38:12


#8345: 0 bytes after a block of size 8 alloc'd
---------------------------------------------------+------------------------
 Reporter: rjgebis@… | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: filesystem has_extension invalid read |
---------------------------------------------------+------------------------
 I was just profiling my appication build with 1.53.0 using valgrind 3.8.1
 and have this errors

 This was build on Ubuntu 12.10 server x64

 Here is the source code

     std::string storePathStr; // Set from arg list
     boost::filesystem::path storePath;

     if( storePathStr.empty() )
         storePath /= "./store/"; // (boost::filesystem::current_path());
     else
     {
         if( storePathStr[storePathStr.size()-1] != PATH_SEPERATOR )
             storePathStr.append(1, PATH_SEPERATOR);

         storePath = boost::filesystem::path(storePathStr);
     }

     if( storePath.has_extension() )
         THROW_APP_EXCEPTION("Invalid Store Path: " + storePath.string());


 Here is stack

 operator new[](unsigned long)
 std::moneypunct<wchar_t,
 false>::_M_initialize_moneypunct(__locale_struct*, char const*)
 std::locale::_Impl::_Impl(char const*, unsigned long)
 std::locale::locale(char const*)
 boost::filesystem::path::codecvt()
 boost::filesystem::path::begin()
 boost::filesystem::path::compare(boost::filesystem::path const&) const
 boost::filesystem::path::extension()
 boost::filesystem::path::has_extension()

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8345>
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:12 UTC