From 365974bb47d4f2c9942ca51dc817bc56688c90c4 Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 3 Sep 2017 11:43:15 +1000 Subject: [PATCH] Fix Octal regex... Octal is 0-7, not 0-9 --- tools/net/bpf_exp.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/net/bpf_exp.l b/tools/net/bpf_exp.l index bd83149e7be04c..4da8d053d68f58 100644 --- a/tools/net/bpf_exp.l +++ b/tools/net/bpf_exp.l @@ -175,7 +175,7 @@ extern void yyerror(const char *str); yylval.number = strtol(yytext, NULL, 10); return number; } -([0][0-9]+) { +([0][0-7]+) { yylval.number = strtol(yytext + 1, NULL, 8); return number; }