bpf: fix cbpf parser bug for octal numbers
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 2 Jun 2018 21:06:38 +0000 (23:06 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 3 Jun 2018 14:46:55 +0000 (07:46 -0700)
commitb3bbba3570a7ba064f12c33f484eb9757a2b359e
tree68e5b635828abb20800a5f268cbbf01ecc8d0639
parent1fbc2e0cfcf9677683aea2b1f9ea76fbdc6fb6d1
bpf: fix cbpf parser bug for octal numbers

Range is 0-7, not 0-9, otherwise parser silently excludes it from the
strtol() rather than throwing an error.

Reported-by: Marc Boschma <marc@boschma.cx>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpf_exp.l