Commit 471b7069 authored by Stefan Tauner's avatar Stefan Tauner
Browse files

Make validate_value check for non-portable hexadecimal numbers > 0xffffffff

parent d369e07b
......@@ -591,6 +591,7 @@ sub validate_value {
if ($orig !~ /^(0|(0[xX][[:xdigit:]]+))$/) {
return "$orig does not look like a natural hexadecimal number";
return "$orig is too large" if (length($orig) > 2+8); # Hexadecimal numbers > 0xffffffff are non-portable
${$v_ref} = hex($orig);
# Check for natural value range. Should never trigger due to the regex above.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment