diff options
author | chriseth <c@ethdev.com> | 2017-03-07 19:34:32 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-03-07 19:34:32 +0800 |
commit | bb06569dc66adbe853bf79273f2eff04d8e36ab6 (patch) | |
tree | 61d34de9f255d7ca7a2155063de5dd576f6e450b /libsolidity/parsing | |
parent | 573b885337aca75a025c08eea80bb109041e669e (diff) | |
download | dexon-solidity-bb06569dc66adbe853bf79273f2eff04d8e36ab6.tar dexon-solidity-bb06569dc66adbe853bf79273f2eff04d8e36ab6.tar.gz dexon-solidity-bb06569dc66adbe853bf79273f2eff04d8e36ab6.tar.bz2 dexon-solidity-bb06569dc66adbe853bf79273f2eff04d8e36ab6.tar.lz dexon-solidity-bb06569dc66adbe853bf79273f2eff04d8e36ab6.tar.xz dexon-solidity-bb06569dc66adbe853bf79273f2eff04d8e36ab6.tar.zst dexon-solidity-bb06569dc66adbe853bf79273f2eff04d8e36ab6.zip |
Disallow octal literals.
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r-- | libsolidity/parsing/Scanner.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/parsing/Scanner.cpp b/libsolidity/parsing/Scanner.cpp index 3623f23f..0e60fd0b 100644 --- a/libsolidity/parsing/Scanner.cpp +++ b/libsolidity/parsing/Scanner.cpp @@ -758,6 +758,9 @@ Token::Value Scanner::scanNumber(char _charSeen) while (isHexDigit(m_char)) addLiteralCharAndAdvance(); } + else if (isDecimalDigit(m_char)) + // We do not allow octal numbers + return Token::Illegal; } // Parse decimal digits and allow trailing fractional part. if (kind == DECIMAL) |