Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
af79ebab
Commit
af79ebab
authored
Dec 11, 2016
by
Francis Dupont
Browse files
[5036] Fixed control char test for signed chars
parent
4a559a59
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/dhcp6_lexer.cc
View file @
af79ebab
...
...
@@ -2641,7 +2641,7 @@ YY_RULE_SETUP
}
break
;
default:
if
(
c
<
0x20
)
{
if
((
c
>
0
)
&&
(
c
<
0x20
)
)
{
// impossible condition
driver
.
error
(
driver
.
loc_
,
"Invalid control in
\"
"
+
raw
+
"
\"
"
);
}
...
...
src/bin/dhcp6/dhcp6_lexer.ll
View file @
af79ebab
...
...
@@ -968,7 +968,7 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
}
break;
default:
if (c < 0x20) {
if
((c >= 0) &&
(c < 0x20)
)
{
// impossible condition
driver.error(driver.loc_, "
Invalid
control
in
\
""
+
raw
+
"\"");
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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