diff options
author | Michi Henning <michi@zeroc.com> | 2006-06-27 06:06:05 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2006-06-27 06:06:05 +0000 |
commit | 13ce9ce43ee0b4618a0c23c02560c35ba82efb8c (patch) | |
tree | 85e55ba50d513efe37fa4649ba219fca0ff2f43f /cpp/src/Slice/Scanner.l | |
parent | Bug 710. (diff) | |
download | ice-13ce9ce43ee0b4618a0c23c02560c35ba82efb8c.tar.bz2 ice-13ce9ce43ee0b4618a0c23c02560c35ba82efb8c.tar.xz ice-13ce9ce43ee0b4618a0c23c02560c35ba82efb8c.zip |
Bug 966.
Diffstat (limited to 'cpp/src/Slice/Scanner.l')
-rw-r--r-- | cpp/src/Slice/Scanner.l | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/Slice/Scanner.l b/cpp/src/Slice/Scanner.l index d212f82439d..cdad5358273 100644 --- a/cpp/src/Slice/Scanner.l +++ b/cpp/src/Slice/Scanner.l @@ -277,6 +277,10 @@ floating_literal (({fractional_constant}{exponent_part}?)|((\+|-)?[[:digit:]]+{e { unput(next); } + if(us == 0) + { + unit->error("illegal NUL character in string constant"); + } str->v += static_cast<char>(us); break; } @@ -300,6 +304,10 @@ floating_literal (({fractional_constant}{exponent_part}?)|((\+|-)?[[:digit:]]+{e } } unput(next); + if(ull == 0) + { + unit->error("illegal NUL character in string constant"); + } str->v += static_cast<char>(ull); break; } |