mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
Fix VPN-RD parsing on 32-bit systems
When shift count >= width of type the behavior is undefined.
This commit is contained in:
parent
5a9169e152
commit
e521150b8f
@ -124,7 +124,8 @@ include ^{WHITE}*include{WHITE}*\".*\"{WHITE}*;
|
||||
}
|
||||
|
||||
{DIGIT}+:{DIGIT}+ {
|
||||
unsigned long int l, len1 UNUSED, len2;
|
||||
uint len1 UNUSED, len2;
|
||||
u64 l;
|
||||
char *e;
|
||||
|
||||
errno = 0;
|
||||
@ -155,7 +156,8 @@ include ^{WHITE}*include{WHITE}*\".*\"{WHITE}*;
|
||||
}
|
||||
|
||||
[02]:{DIGIT}+:{DIGIT}+ {
|
||||
unsigned long int l, len1, len2;
|
||||
uint len1, len2;
|
||||
u64 l;
|
||||
char *e;
|
||||
|
||||
if (yytext[0] == '0')
|
||||
|
Loading…
Reference in New Issue
Block a user