Boost logo

Boost-Commit :

From: lists.drrngrvy_at_[hidden]
Date: 2008-03-21 18:24:15


Author: drrngrvy
Date: 2008-03-21 18:24:15 EDT (Fri, 21 Mar 2008)
New Revision: 43792
URL: http://svn.boost.org/trac/boost/changeset/43792

Log:
Merged revisions 43791 via svnmerge from
https://svn.boost.org/svn/boost/sandbox/SOC/2007/cgi/trunk

........
  r43791 | drrngrvy | 2008-03-21 22:22:42 +0000 (Fri, 21 Mar 2008) | 1 line
  
  Oops. Fix a possible buffer overflow.
........

Properties modified:
   sandbox/SOC/2007/cgi/branches/release/ (props changed)
Text files modified:
   sandbox/SOC/2007/cgi/branches/release/boost/cgi/detail/url_decode.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/SOC/2007/cgi/branches/release/boost/cgi/detail/url_decode.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/branches/release/boost/cgi/detail/url_decode.hpp (original)
+++ sandbox/SOC/2007/cgi/branches/release/boost/cgi/detail/url_decode.hpp 2008-03-21 18:24:15 EDT (Fri, 21 Mar 2008)
@@ -77,9 +77,9 @@
            ret.append(1, ' ');
            break;
          case '%':
- if (std::isxdigit(*(iter+1))
- && std::isxdigit(*(iter+2))
- && std::distance(iter, end) >= 2)
+ if (std::distance(iter, end) >= 2
+ && std::isxdigit(*(iter+1))
+ && std::isxdigit(*(iter+2)))
            {
              char ch = *++iter; // need this because order of function arg
                                 // evaluation is UB.


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