commit | 32e61bf91fba3c7946b9f71918202e5e55859a5c | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Nov 29 00:54:29 2007 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Nov 29 00:54:29 2007 +0000 |
tree | 9befc3e2f6f29982a80f6974c658d2ec6ef526e4 | |
parent | 1f6443255894429fba384de0d5b6389ef578a5e9 [diff] |
Removed potential buffer overrun (spotted by Neil Booth) when NumericLiteralParser converts a parsed literal into an APFloat. We are still performing a copy of the string, which hopefully will be removed eventually for performance reasons. This version now is at least safe. Changed rounding in APFloat construction in NumericLiteralParser from rmTowardsZero to rmNearestTiesToEven. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44422 91177308-0d34-0410-b5e6-96231b3b80d8