|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63128 - trunk/boost/spirit/home/qi/numeric/detail
From: joel_at_[hidden]
Date: 2010-06-20 06:06:11
Author: djowel
Date: 2010-06-20 06:06:11 EDT (Sun, 20 Jun 2010)
New Revision: 63128
URL: http://svn.boost.org/trac/boost/changeset/63128
Log:
disallowing partial parses of ints and enforcing overflow-is-parse-error rule.
Text files modified:
trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp 2010-06-20 06:06:11 EDT (Sun, 20 Jun 2010)
@@ -411,8 +411,10 @@
if (it == last) \
break; \
ch = *it; \
- if (!radix_check::is_valid(ch) || !extractor::call(ch, count, val)) \
+ if (!radix_check::is_valid(ch)) \
break; \
+ if (!extractor::call(ch, count, val)) \
+ return false; \
++it; \
++count; \
/**/
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