Skip to content

Commit

Permalink
Fixed CORE-6290 - Hex number used at end of statement (for exame with…
Browse files Browse the repository at this point in the history
… CREATE DOMAIN ... DEFAULT)

may read invalid memory and produce wrong values or exceptions.
  • Loading branch information
asfernandes committed Apr 23, 2020
1 parent 0c67001 commit c2f132a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/dsql/Parser.cpp
Expand Up @@ -783,14 +783,8 @@ int Parser::yylexAux()
// Time to scan the string. Make sure the characters are legal,
// and find out how long the hex digit string is.

for (;;)
while (lex.ptr < lex.end)
{
if (charlen == 0 && lex.ptr >= lex.end) // Unexpected EOS
{
hexerror = true;
break;
}

c = *lex.ptr;

if (!(classes(c) & CHR_HEX)) // End of digit string
Expand Down

0 comments on commit c2f132a

Please sign in to comment.