Commit graph

11491 commits

Author SHA1 Message Date
Christian Kreibich
ca725c1f9b Avoid reporting paths repeatedly in zeek-config --include_dir 2021-03-04 15:40:00 -08:00
Tim Wojtulewicz
5111b8e386 Fix comment in IP analyzer 2021-03-02 14:04:30 -07:00
Jon Siwek
bca8c3053b Update submodule(s) [nomail] [skip ci] 2021-03-02 12:47:34 -08:00
Jon Siwek
e2d2c75fe7 Merge remote-tracking branch 'origin/topic/jsiwek/zeekygen-code-links'
- Applied minor spelling/grammar suggestions from Johanna during merge

* origin/topic/jsiwek/zeekygen-code-links:
  Change update-zeekygen-docs.sh to set release branch in Sphinx config
  Teach Zeekygen to produce source-code-range information
  Add normalize_script_path() zeek::zeekygen::detail namespace
  Add starts_with()/ends_with() to zeek::util namespace
2021-03-01 11:37:29 -08:00
Jon Siwek
7b4b8bd96d Update submodule(s) [nomail] 2021-02-26 17:58:24 -08:00
Jon Siwek
c8daec20c3 Change update-zeekygen-docs.sh to set release branch in Sphinx config
Allows release branches to generate correct links to GitHub source code.
2021-02-26 15:10:53 -08:00
Jon Siwek
6ac499882c Teach Zeekygen to produce source-code-range information
Related to https://github.com/zeek/zeek-docs/issues/56
2021-02-26 14:55:59 -08:00
Jon Siwek
c95a364ff7 Add normalize_script_path() zeek::zeekygen::detail namespace 2021-02-26 14:53:53 -08:00
Jon Siwek
9ced370b48 Add starts_with()/ends_with() to zeek::util namespace 2021-02-26 14:43:55 -08:00
Tim Wojtulewicz
b8ec65ccf7 Merge remote-tracking branch 'origin/topic/jsiwek/coverity-lint'
* origin/topic/jsiwek/coverity-lint:
  Avoid superfluous string copies when adding to zeek::detail::sig_files
  Initialize an RD_Decorate member via std::move
  Fix invalid iterator comparison in UseDefs::FindSuccUsage()
2021-02-25 08:46:14 -07:00
Jon Siwek
0d1a60547e Update submodule(s) [nomail] [skip ci] 2021-02-24 17:53:59 -08:00
zeek-bot
04534b8b46 Update doc submodule [nomail] [skip ci] 2021-02-25 00:38:16 +00:00
Jon Siwek
39efbab3a4 Merge remote-tracking branch 'origin/topic/timw/remove-declaration-macros'
- Fixed forward decl. of ScriptInfo in zeekygen/Manager.h during merge

* origin/topic/timw/remove-declaration-macros:
  Remove obsolete ZEEK_FORWARD_DECLARE_NAMESPACED macros
2021-02-24 15:53:25 -08:00
Jon Siwek
6ac7fc9c65 Avoid superfluous string copies when adding to zeek::detail::sig_files
Coverity 1387015
2021-02-24 15:11:24 -08:00
Jon Siwek
86b00ad6df Initialize an RD_Decorate member via std::move 2021-02-24 15:10:33 -08:00
Jon Siwek
6983590727 Fix invalid iterator comparison in UseDefs::FindSuccUsage()
Coverity 1447018
2021-02-24 15:04:32 -08:00
Tim Wojtulewicz
e997eeeaab Merge remote-tracking branch 'origin/topic/christian/ci-add-centos-stream'
* origin/topic/christian/ci-add-centos-stream:
  Minor Fedora 32/33 updates in CI
  Add CentOS Stream 8 to CI
2021-02-24 15:11:10 -07:00
Tim Wojtulewicz
4ad08172d0 Remove obsolete ZEEK_FORWARD_DECLARE_NAMESPACED macros 2021-02-24 14:35:44 -07:00
Jon Siwek
3179df9ab2 Merge remote-tracking branch 'origin/topic/jsiwek/file-analyzer-disabling'
* origin/topic/jsiwek/file-analyzer-disabling:
  Support explicit disabling of file analyzers
2021-02-24 12:37:24 -08:00
Christian Kreibich
a9545c0378 Minor Fedora 32/33 updates in CI
- Switch Fedora package management from yum to dnf, the default
- Minimize set of requested RPMs
2021-02-24 09:51:19 -08:00
Christian Kreibich
23b0567e62 Add CentOS Stream 8 to CI
There's no official Docker image on the Docker Hub, it's on quay.io:
https://quay.io/repository/centos/centos?tab=tags

At the moment, "Stream" and "Stream 8" are synonymous.
2021-02-24 09:50:36 -08:00
Jon Siwek
737d2c390b Support explicit disabling of file analyzers 2021-02-23 15:50:18 -08:00
Jon Siwek
8c4092a0ad Update submodule(s) [nomail] [skip ci] 2021-02-23 12:25:37 -08:00
Jon Siwek
80221cb958 Merge remote-tracking branch 'origin/topic/vern/use-defs'
- Added explicit test case of "unused assignement" warning and
  &is_used suppression during merge.

* origin/topic/vern/use-defs:
  activate &is_used
  removed unnecessary statement flagged by Coverity (thanks, Jon!)
  Adjust reference/move nitpicks in use-def/reduce code
  Adjust some whitespace in UseDefs.cc
  updates to "usage" test suite alternative now that more warnings are generated
  suppress usage warning in baseline script
  "xform" alternative baseline update, needed for recent change to master
  baseline update due to shift in number of lines in base intel framework script
  environment variable (which has precedence) not flags for baseline usage test
  splitting out "usage" test suite alternative into -u/-uu versions
  adding &is_used attribute for base scripts - not actually needed yet, but will be once optimization is added
  removing unused assignments from base scripts
  driver glue for invoking use-def construction
  classes for managing and propagating use-defs
  enhancements/changes to the Reduce class in preparation for use-defs
  some tidying with smart pointers
  flag/environment variable for dumping use-defs
  &is_used attribute to suppress set-but-not-used usage warnings
  whitespace micro-preening
2021-02-23 12:11:24 -08:00
Vern Paxson
86709c5992 activate &is_used 2021-02-23 08:32:14 -08:00
Jon Siwek
0ec08d7c9b Update submodule(s) [nomail] 2021-02-22 15:50:02 -08:00
Jon Siwek
023bed5299 Update submodule(s) [nomail] [skip ci] 2021-02-16 14:06:27 -08:00
Jon Siwek
666afc58ed Update Broker submodule for performance/credit-tracking fixes 2021-02-16 12:34:11 -08:00
Jon Siwek
ba46ed25d9 Merge remote-tracking branch 'origin/topic/jsiwek/fix-pe-major-subsys'
* origin/topic/jsiwek/fix-pe-major-subsys:
  Fix `major_subsys_version` field in `pe_optional_header` event
2021-02-16 11:10:57 -08:00
Jon Siwek
c54a413bae Update submodule(s) [nomail] [skip ci] 2021-02-16 10:55:25 -08:00
Jon Siwek
f420cc2544 Fix CentOS 8 CI Dockerfile
The "PowerTools" repoid changed to "powertools":
https://bugs.centos.org/view.php?id=17920
2021-02-12 14:40:52 -08:00
Jon Siwek
a636f8edbd Merge fix for GH-1398 allowing null-bytes in ASCII input files
* Commits:
  Ascii reader test with 0-bytes
  Fix buffer overread in ascii formatter
2021-02-12 11:30:15 -08:00
Johanna Amann
6c554ddde3 Ascii reader test with 0-bytes
Add a second test, which contains actual 0-bytes.
2021-02-12 14:49:33 +00:00
Johanna Amann
61290fc19c Fix buffer overread in ascii formatter
When a text with an (escaped) zero byte was passed to ParseValue, only
the part of the string up to the zero byte was copied, but the length of
the full string was passed to the input framework.

This leads to the input manager reading over the end of the buffer.

Fixes zeek/zeek#1398
2021-02-12 14:24:36 +00:00
Jon Siwek
69d73f7c83 Fix major_subsys_version field in pe_optional_header event
It was incorrectly set the same as the `minor_subsys_version` field
of the `PE::OptionalHeader` record.
2021-02-11 21:14:34 -08:00
Jon Siwek
021a31b29a Update submodule(s) [nomail] [skip ci] 2021-02-11 12:11:44 -08:00
Jon Siwek
3405b961b9 Remove RocksDB configure script options
Fixes GH-1399
2021-02-11 11:13:17 -08:00
Jon Siwek
0717e01b6b Merge remote-tracking branch 'origin/topic/timw/coverage-loop-fixes'
* origin/topic/timw/coverage-loop-fixes:
  Add a script to cleanup the file listing before sending to Coveralls
2021-02-11 10:56:42 -08:00
Vern Paxson
f82d443225 Merge branch 'topic/vern/use-defs' of github.com:zeek/zeek into topic/vern/use-defs 2021-02-10 19:09:28 -08:00
Vern Paxson
dc80d2f36f removed unnecessary statement flagged by Coverity (thanks, Jon!) 2021-02-10 19:08:52 -08:00
Tim Wojtulewicz
a05356eb79 Add a script to cleanup the file listing before sending to Coveralls
GCC has a "feature" where it doesn't realize that files in the
src/zeek/... tree are the same as files in the normal 'src/' tree. This
leads the coverage script to send duplicates to Coveralls and pollute
the display with them. The new script scrapes the intermediate output
from lcov and de-duplicates anything in src/zeek/ to be just from src/.
2021-02-09 23:07:47 +00:00
Jon Siwek
b450b90a3e Adjust reference/move nitpicks in use-def/reduce code
Use std::move() and avoid superfluous copies by assigning to
const-reference in a few places.
2021-02-08 17:53:21 -08:00
Jon Siwek
8d452f58fc Adjust some whitespace in UseDefs.cc 2021-02-08 17:48:53 -08:00
Jon Siwek
e460d66e03 Update submodule(s) [nomail] 2021-02-08 15:42:12 -08:00
Jon Siwek
419c68b188 Merge remote-tracking branch 'origin/topic/jsiwek/parse-only-usage-errors'
* origin/topic/jsiwek/parse-only-usage-errors:
  Allow --parse-only to work with --usage-issues flag
2021-02-08 13:06:23 -08:00
Vern Paxson
b714fde456 updates to "usage" test suite alternative now that more warnings are generated 2021-02-06 11:07:26 -08:00
Vern Paxson
1605b57dec suppress usage warning in baseline script 2021-02-06 11:05:53 -08:00
Vern Paxson
991bd51430 "xform" alternative baseline update, needed for recent change to master 2021-02-06 11:04:53 -08:00
Vern Paxson
6838ef66b4 baseline update due to shift in number of lines in base intel framework script 2021-02-06 11:04:17 -08:00
Vern Paxson
da40c580b2 environment variable (which has precedence) not flags for baseline usage test 2021-02-06 11:01:30 -08:00