commit | ecc8d7b334f25a4e9c6aae7c3260cf27bdaab976 | [log] [tgz] |
---|---|---|
author | Marshall Clow <mclow.lists@gmail.com> | Wed Nov 06 14:24:38 2013 +0000 |
committer | Marshall Clow <mclow.lists@gmail.com> | Wed Nov 06 14:24:38 2013 +0000 |
tree | 48a0d4ea498a885366ad6655cb23d0bbdb3a7d88 | |
parent | 5ffe591d55f4a3714927a4f82a525960f68168bf [diff] |
Fix an off-by-one error in basic_string::__grow_by, where it would incorrectly throw length_error (instead of bad_alloc) when attempting to resize the string to 'max_size()'. Add tests for resizing to max_size +/-1 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@194151 91177308-0d34-0410-b5e6-96231b3b80d8