On 08/02/2017 02:57 PM, Phil Sutter wrote:
bpf_parse_string() will now correctly handle:

- Extraneous whitespace,
- OPs on multiple lines and
- overlong file names.

The added feature of allowing to have OPs on multiple lines (like e.g.
tcpdump prints them) is rather a side effect of fixing detection of
malformed bytecode files having random content on a second line, like
e.g.:

| 4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0
| foobar

Cc: Daniel Borkmann <[email protected]>
Signed-off-by: Phil Sutter <[email protected]>

Acked-by: Daniel Borkmann <[email protected]>

Reply via email to