Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-07-22 04:30:38


Author: chris_kohlhoff
Date: 2008-07-22 04:30:38 EDT (Tue, 22 Jul 2008)
New Revision: 47674
URL: http://svn.boost.org/trac/boost/changeset/47674

Log:
Merged revisions 47673 via svnmerge from
https://svn.boost.org/svn/boost/trunk

........
  r47673 | chris_kohlhoff | 2008-07-22 18:26:35 +1000 (Tue, 22 Jul 2008) | 3 lines
  
  Correct an array bounds error in the treatment of paths for UNIX domain sockets.
  Fixes #2120.
........

Properties modified:
   branches/release/ (props changed)
Text files modified:
   branches/release/boost/asio/local/basic_endpoint.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: branches/release/boost/asio/local/basic_endpoint.hpp
==============================================================================
--- branches/release/boost/asio/local/basic_endpoint.hpp (original)
+++ branches/release/boost/asio/local/basic_endpoint.hpp 2008-07-22 04:30:38 EDT (Tue, 22 Jul 2008)
@@ -149,7 +149,7 @@
         - offsetof(boost::asio::detail::sockaddr_un_type, sun_path);
 
       // The path returned by the operating system may be NUL-terminated.
- if (path_length_ > 0 && data_.local.sun_path[path_length_] == 0)
+ if (path_length_ > 0 && data_.local.sun_path[path_length_ - 1] == 0)
         --path_length_;
     }
   }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk