Make "in" keyword work with binary data.

This switches in from using strstr to use strnstr (implementation from
FreeBSD on systems which do not bring their own implementation).

It is especially likely that users come accross this when using the
DATA_EVENT analyzer with files that contain binary data - the test uses
exactly this case.
This commit is contained in:
Johanna Amann 2017-09-18 11:38:14 -07:00
parent 6ffa99d67e
commit a4d25c8828
4 changed files with 25 additions and 3 deletions