Commit graph

11716 commits

Author SHA1 Message Date
Vern Paxson
45b9371e38 remove unneeded virtual method (same as inherited method) 2021-02-27 10:49:57 -08:00
Vern Paxson
2b0a1bd2e9 accessors for additional Expr subclasses 2021-02-27 10:48:16 -08:00
Vern Paxson
84a56e353e fix other instances of GetField().get() assuming long-lived ValPtr's 2021-02-27 10:29:32 -08:00
Vern Paxson
963d50bd48 fix for now-incorrect assumption that GetField always returns an existing ValPtr 2021-02-27 08:34:38 -08:00
Vern Paxson
a912f6dd9a tidying some interfaces 2021-02-27 08:32:04 -08:00
Vern Paxson
d9b67edf52 convenience functions to check for aggregate types 2021-02-27 08:30:24 -08:00
Vern Paxson
743f5cfef6 fix includes to have proper prefixes 2021-02-27 08:28:15 -08:00
Vern Paxson
f92946509c ... and porting over memory management for assignment to vector elements 2021-02-27 06:37:50 -08:00
Vern Paxson
1447736b35 ... porting over memory management for assignment to record fields 2021-02-27 06:11:01 -08:00
Jon Siwek
7b4b8bd96d Update submodule(s) [nomail] 2021-02-26 17:58:24 -08:00
Vern Paxson
9468b81a7b dagnabbit, forgot to port over destructor cleanup from ZAM_vector/ZAM_record 2021-02-26 15:51:09 -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
Vern Paxson
5084584020 test suite update for Smith-Waterman now using 0-based vectors 2021-02-25 17:13:56 -08:00
Vern Paxson
98ada4e419 test suite updates for expanded sort() BiF semantics (bools, doubles) 2021-02-25 17:13:50 -08:00
Vern Paxson
ab0b773522 test suite updates reflecting that vectors no longer support arbitrary "holes" 2021-02-25 17:00:36 -08:00
Vern Paxson
62bab66114 migration to using new differentiated methods for setting record fields 2021-02-25 16:59:26 -08:00
Vern Paxson
4213245633 RecordVal methods for differentiated setting of record fields 2021-02-25 15:42:38 -08:00
Vern Paxson
53fea053de fix for fencepost error when looping over vectors 2021-02-25 15:29:14 -08:00
Vern Paxson
b6f4f897c6 migrate to using RecordVal's new Remove() method 2021-02-25 15:28:37 -08:00
Vern Paxson
c757db2714 new RecordVal Remove() method to clear a field 2021-02-25 15:04:46 -08:00
Vern Paxson
931cec4e06 use differentiated record field accessors 2021-02-25 14:47:44 -08:00
Vern Paxson
e363bab55f base support for differentiated record field accessors 2021-02-25 13:51:06 -08:00
Vern Paxson
0118b6ee38 migrate to differentiated vector "At" accessors to support future efficiency 2021-02-25 13:28:23 -08:00
Vern Paxson
bc4a6c0d07 fix for subtle bug due to GetField now potentially returning a new ValPtr 2021-02-25 12:45:34 -08:00
Vern Paxson
3f6f8e0709 use HasField() rather than GetField() where appropriate 2021-02-25 12:38:46 -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
Vern Paxson
13e7ba3a00 moving sort()/order() functionality into VectorVal 2021-02-24 18:09:40 -08:00
Jon Siwek
0d1a60547e Update submodule(s) [nomail] [skip ci] 2021-02-24 17:53:59 -08:00
Vern Paxson
0299ea0894 convert VectorVal's to use vector<ZVal> as internal representation 2021-02-24 17:38:31 -08:00
Vern Paxson
6121e409d3 convert RecordVal's to use vector<ZVal> as internal representation 2021-02-24 17:02:47 -08:00
Vern Paxson
348e14c326 added ZVal for low-level representations of Zeek script values 2021-02-24 16:41:35 -08:00
zeek-bot
04534b8b46 Update doc submodule [nomail] [skip ci] 2021-02-25 00:38:16 +00:00
Vern Paxson
b065582319 fix mis-typed record fields that happened to work in original RecordVal impl. 2021-02-24 16:33:17 -08:00
Vern Paxson
e64805430b fix off-by-one assumption regarding vector indexing dating to 2011 2021-02-24 16:31:07 -08: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