]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit105a948ebe9346a809e32190faa177e3df69709b
tree68e5b635828abb20800a5f268cbbf01ecc8d0639
parent1569603f946d16336c09ccbc8981827dd8fb4381
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