[Boost-bugs] [Boost C++ Libraries] #6187: boost::filesystem::exists will thought a string is which include zero, is a file, exactly is the file is not exist.

Subject: [Boost-bugs] [Boost C++ Libraries] #6187: boost::filesystem::exists will thought a string is which include zero, is a file, exactly is the file is not exist.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-01 03:13:04


#6187: boost::filesystem::exists will thought a string is which include zero, is a
file, exactly is the file is not exist.
------------------------------------------------+---------------------------
 Reporter: js1011 <jiangshui584520@…> | Owner:
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: filesystem |
------------------------------------------------+---------------------------
 A string like this;
 std::string path = "/usr/lib/";
 path.append(2, 0x0);
 path.append(3, 'x');

 boost::filesystem::exists function will thought this 'path' is a
 directory.

 thanks regards.

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