diff options
author | Elliott Hughes <enh@google.com> | 2014-04-10 18:39:41 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-04-10 18:39:41 +0000 |
commit | e8a2ca2708fd28dd847f01a2352c76220bf09da8 (patch) | |
tree | c07bb44e21f5839d4f89e538496c858710b53c90 | |
parent | 6326c00d0206627b63fe7b70e4f43a9b95d8d065 (diff) | |
parent | 3b79d03bdc1eb40956f4f51161a6c63cee997724 (diff) | |
download | stlport-e8a2ca2708fd28dd847f01a2352c76220bf09da8.tar.gz |
am 3b79d03b: Merge "stlport: Fix boundary condition in stlport for __get_integer."
* commit '3b79d03bdc1eb40956f4f51161a6c63cee997724':
stlport: Fix boundary condition in stlport for __get_integer.
-rw-r--r-- | stlport/stl/_num_get.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stlport/stl/_num_get.c b/stlport/stl/_num_get.c index 1e7d234..e814879 100644 --- a/stlport/stl/_num_get.c +++ b/stlport/stl/_num_get.c @@ -155,6 +155,9 @@ __get_integer(_InputIter& __first, _InputIter& __last, } } + if ((__result == (numeric_limits<_Integer>::min)()) && !__is_negative) + __ovflow = true; + if (__is_group && __group_sizes_end != __group_sizes) { *__group_sizes_end++ = __current_group_size; } |