Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vecs
FIJI Public
Commits
471b7069
Commit
471b7069
authored
Dec 07, 2017
by
Stefan Tauner
Browse files
Make validate_value check for non-portable hexadecimal numbers > 0xffffffff
parent
d369e07b
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/FIJI/Settings.pm
View file @
471b7069
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment