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:
parent
a626a8765c
commit
df23e506d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user