Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50022 - sandbox/compile-in-place/Boost_1_35_0/boost/archive/iterators
From: doomster_at_[hidden]
Date: 2008-11-29 13:39:50


Author: eckhardt
Date: 2008-11-29 13:39:49 EST (Sat, 29 Nov 2008)
New Revision: 50022
URL: http://svn.boost.org/trac/boost/changeset/50022

Log:
- Extend range check to also catch negative indices.

Text files modified:
   sandbox/compile-in-place/Boost_1_35_0/boost/archive/iterators/base64_from_binary.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: sandbox/compile-in-place/Boost_1_35_0/boost/archive/iterators/base64_from_binary.hpp
==============================================================================
--- sandbox/compile-in-place/Boost_1_35_0/boost/archive/iterators/base64_from_binary.hpp (original)
+++ sandbox/compile-in-place/Boost_1_35_0/boost/archive/iterators/base64_from_binary.hpp 2008-11-29 13:39:49 EST (Sat, 29 Nov 2008)
@@ -43,6 +43,7 @@
             "0123456789"
             "+/";
         assert(t < 64);
+ assert(t >= 0);
         return lookup_table[t];
     }
 };


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