8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Fixed CORE-6290 - Hex number used at end of statement (for exame with CREATE DOMAIN ... DEFAULT)

may read invalid memory and produce wrong values or exceptions.
This commit is contained in:
Adriano dos Santos Fernandes 2020-04-23 16:08:48 +00:00
parent a626a8765c
commit df23e506d4

View File

@ -809,14 +809,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