Commit e521150b authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

Fix VPN-RD parsing on 32-bit systems

When shift count >= width of type the behavior is undefined.
parent 5a9169e1
...@@ -124,7 +124,8 @@ include ^{WHITE}*include{WHITE}*\".*\"{WHITE}*; ...@@ -124,7 +124,8 @@ include ^{WHITE}*include{WHITE}*\".*\"{WHITE}*;
} }
{DIGIT}+:{DIGIT}+ { {DIGIT}+:{DIGIT}+ {
unsigned long int l, len1 UNUSED, len2; uint len1 UNUSED, len2;
u64 l;
char *e; char *e;
errno = 0; errno = 0;
...@@ -155,7 +156,8 @@ include ^{WHITE}*include{WHITE}*\".*\"{WHITE}*; ...@@ -155,7 +156,8 @@ include ^{WHITE}*include{WHITE}*\".*\"{WHITE}*;
} }
[02]:{DIGIT}+:{DIGIT}+ { [02]:{DIGIT}+:{DIGIT}+ {
unsigned long int l, len1, len2; uint len1, len2;
u64 l;
char *e; char *e;
if (yytext[0] == '0') if (yytext[0] == '0')
......
Markdown is supported
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