Commit graph

9176 commits

Author SHA1 Message Date
Tim Wojtulewicz
ad19f1e1bb GHI-486: Switch over to using LLVM utf8-checking code to better validate characters 2019-07-24 10:58:00 -07:00
Dev Bali
6fcb23066d Added Jon's test cases as unit tests 2019-07-23 11:59:33 -07:00
Dev Bali
3efbea0b84 Prioritizes escaping predefined Escape Sequences over Unescaping UTF-8 Sequences 2019-07-23 11:59:33 -07:00
Dev Bali
d6bcdfce52 Added additional check to confirm anything unescaping is a multibyte UTF-8 sequence, addressing the test case Jon brought up 2019-07-23 11:59:33 -07:00
Dev Bali
66557d3178 Added optional script and redef bool to enable utf-8 in ASCII logs 2019-07-23 11:59:33 -07:00
System Administrator
6927dd1213 Initial Commit, removed std::isprint check to escape 2019-07-23 11:59:33 -07:00
Jon Siwek
9698d8d7cc Remove --disable-perftools from coverity builds 2019-07-23 09:38:16 -07:00
Johanna Amann
42e94d1ce2 Update submodule
[nomail]
2019-07-22 14:14:29 -07:00
Johanna Amann
b289a9a824 Add a license file with all third party software licenses.
This makes it more obvious which third party software we ship together
with Zeek and what license terms one has to abide to.
2019-07-22 14:10:57 -07:00
Johanna Amann
ff4845aa80 Merge branch 'master' of github.com:zeek/zeek 2019-07-22 12:46:21 -07:00
Johanna Amann
3159577821 Merge remote-tracking branch 'origin/topic/zeke/expire-func'
* origin/topic/zeke/expire-func:
  Ignore abs-path in test.
  Report argument # type check failed on.
  Update test baseline.
  Improve func arg type checking.
  &expire_func(table, arg1, arg2, ...) + type checking.
2019-07-22 12:44:55 -07:00
Jon Siwek
19dc0f8be9 Merge branch 'topic/timw/algorithms'
* topic/timw/algorithms:
  Remove List::append deprecation
  Mark List::append/insert deprecated in favor of push_back/push_front for consistency with Queue
  Mark List::sort as deprecated, remove List::sortedinsert
  Change container iterators to just use pointers directly into the container elements
2019-07-22 12:24:14 -07:00
Johanna Amann
354d5e8631 Merge remote-tracking branch 'origin/topic/jsiwek/max-protocol-violations'
* origin/topic/jsiwek/max-protocol-violations:
  Add DPD::max_violations option
2019-07-22 11:16:11 -07:00
Jon Siwek
162bc5f1e3 Remove List::append deprecation 2019-07-22 10:58:31 -07:00
Johanna Amann
fd22c4e29a Abort when --enable-jemalloc is given, but JeMalloc is not found
At the moment this also already aborts in this case - much later, with
an ugly error message.
2019-07-22 10:37:49 -07:00
Johanna Amann
d24fb97b53 Merge remote-tracking branch 'origin/topic/jsiwek/gh-475-no-default-tcmalloc'
* origin/topic/jsiwek/gh-475-no-default-tcmalloc:
  GH-475: Require --enable-perftools to link in tcmalloc

I added an error message is --enable-perftools is given, but perftools
is not found - it does not seem great to not abort in these cases.
2019-07-22 10:31:55 -07:00
Tim Wojtulewicz
6144f459e1 Mark List::append/insert deprecated in favor of push_back/push_front for consistency with Queue 2019-07-22 09:47:43 -07:00
Tim Wojtulewicz
d2d5043bf0 Mark List::sort as deprecated, remove List::sortedinsert 2019-07-22 09:47:43 -07:00
Jon Siwek
270e1c0e31 Fix typo in NEWS 2019-07-19 18:02:15 -07:00
Robin Sommer
1bf0cd29fd Edit pass over changes before merge. 2019-07-20 00:00:51 +00:00
Jon Siwek
7a664ccc10 GH-475: Require --enable-perftools to link in tcmalloc
Before, Linux systems would automatically use tcmalloc if found.

Remove --disable-perftools since there's no longer any case where
it's used by default.
2019-07-19 14:07:19 -07:00
Jon Siwek
07e0dba3c6 Add DPD::max_violations option
This allows one to tune the number of protocol violations to tolerate
from any given analyzer type before just disabling a given instance
of it.

Also removes the "disabled_aids" field from the DPD::Info record
since it serves no purpose: in this case, calling disable_analyzer
multiple times for the same analyzer is a no-op.
2019-07-19 13:00:02 -07:00
Jon Siwek
b0b4a2ffb1 Updating submodule(s).
[nomail]
2019-07-19 10:56:45 -07:00
Robin Sommer
1c703f0893 Merge remote-tracking branch 'origin/topic/jsiwek/support-older-plugins'
* origin/topic/jsiwek/support-older-plugins:
  Support old plugins that use files within the source/build tree
2019-07-19 15:50:28 +00:00
Jon Siwek
12b65be771 Remove unused expression type tag: EXPR_MATCH 2019-07-18 19:45:38 -07:00
Jon Siwek
794748dda8 Add missing expr_name: vector_coerce 2019-07-18 19:39:16 -07:00
Zeke Medley
63a3f4e5bc Ignore abs-path in test. 2019-07-18 16:30:42 -07:00
Robin Sommer
004347b853 Merge remote-tracking branch 'origin/topic/zeke/closures'
* origin/topic/zeke/closures:
  Use BROKER_PORT.
  Update baseline to reflect new anonymous function naming.
  Sync 3rd party.
  Allow serialization of closures over Broker.
  remove some leftover debug output
  Call parent constructor from LambdaExpr.
  Table defaults capture closures.
  Make ClosureFrame safe & cleanup
  Update tests to reflect new error msg.
  ClosureFrame takes ownership of its captured vals.
  Lambdas selectively clone from the closure.
  Add lambda expressions with closures to Zeek.
2019-07-18 22:53:12 +00:00
Zeke Medley
6023157693 Report argument # type check failed on. 2019-07-18 15:22:15 -07:00
Zeke Medley
d3574d231b Update test baseline. 2019-07-18 14:06:34 -07:00
Zeke Medley
8a451a24e3 Improve func arg type checking. 2019-07-18 12:20:52 -07:00
Zeke Medley
0ca6b3e013 &expire_func(table, arg1, arg2, ...) + type checking. 2019-07-18 12:11:27 -07:00
Tim Wojtulewicz
e860a4b22d Change container iterators to just use pointers directly into the container elements 2019-07-17 11:04:45 -07:00
Zeke Medley
1692be4c2d Fix bug in selective cloning. 2019-07-16 15:15:05 -07:00
Jon Siwek
4bdcde52bd Support old plugins that use files within the source/build tree
Plugins that were made using an older skeleton (e.g. from Bro 2.5.x)
may still reference "bro-config.h", "bro-path-dev", or "bro" from the
build tree, so we can simply provide compatibility symlinks/wrappers
for the new files that use "zeek" in their names.
2019-07-16 10:10:37 -07:00
Robin Sommer
c22edc28a5 Merge remote-tracking branch 'origin/topic/zeke/README'
Includes light edit pass.

* origin/topic/zeke/README:
  Add plaintext README file.
  Fix try.zeek.org link
  Improve readability of plaintext.
  Tone down HTML and improve development section.
  Remove development paragraph.
  Update README.
2019-07-16 16:08:57 +00:00
Robin Sommer
a45cc53892 Merge remote-tracking branch 'origin/topic/jsiwek/fix-enumtype-shallow-clone'
* origin/topic/jsiwek/fix-enumtype-shallow-clone:
  Fix ref-counting bug in EnumType copy ctor
2019-07-16 15:34:45 +00:00
Robin Sommer
0639fdcd45 Merge remote-tracking branch 'origin/topic/jsiwek/remove-unused-broobj-member'
* origin/topic/jsiwek/remove-unused-broobj-member:
  Remove unused BroObj::in_ser_cache member
2019-07-16 15:19:16 +00:00
Jon Siwek
8c45937798 Merge branch 'topic/jsiwek/template-containers-merge'
* topic/jsiwek/template-containers-merge:
  Fix a potential usage of List::remove_nth(-1)
  Change List::remote(const T&) to return a bool
  Fix debug build due to old int_list usage within assert
  Convert uses of loop_over_list to ranged-for loops
  Remove loop_over_queue (as an example for later removing loop_over_list)
  Change int_list in CCL.h to be a vector, fix uses of int_list to match
  Remove List<> usage from strings.bif
  Replace uses of the old Queue/PQueue generation code with new template versions
  Convert BaseQueue/Queue/PQueue into templates, including iterator support
  Replace uses of the old Dict generation code with new template versions
  Convert PDict into template
  Replace uses of the old List generation code with new template versions
  Convert BaseList/List/PList into templates, including iterator support

* Generally squashed fixups from topic/timw/template-containers

* Add missing include file in List.h: <cassert>
2019-07-15 19:51:27 -07:00
Jon Siwek
5db772aa5e Fix a potential usage of List::remove_nth(-1) 2019-07-15 19:00:24 -07:00
Jon Siwek
ee95fd2801 Change List::remote(const T&) to return a bool
It now indicates whether the removal took place or not, depending
on whether a matching element was found in the list.
2019-07-15 19:00:24 -07:00
Jon Siwek
7ccf3c0a69 Fix debug build due to old int_list usage within assert 2019-07-15 19:00:24 -07:00
Tim Wojtulewicz
e51f02737b Convert uses of loop_over_list to ranged-for loops 2019-07-15 19:00:24 -07:00
Tim Wojtulewicz
bf70dad395 Remove loop_over_queue (as an example for later removing loop_over_list) 2019-07-15 19:00:15 -07:00
Tim Wojtulewicz
a4e2cfa2be Change int_list in CCL.h to be a vector, fix uses of int_list to match 2019-07-15 18:58:48 -07:00
Tim Wojtulewicz
e25caa2666 Remove List<> usage from strings.bif 2019-07-15 18:58:48 -07:00
Tim Wojtulewicz
efa7dbf76b Replace uses of the old Queue/PQueue generation code with new template versions 2019-07-15 18:58:48 -07:00
Tim Wojtulewicz
776da8cb9e Convert BaseQueue/Queue/PQueue into templates, including iterator support 2019-07-15 18:58:05 -07:00
Tim Wojtulewicz
50943a580c Replace uses of the old Dict generation code with new template versions 2019-07-15 18:54:07 -07:00
Tim Wojtulewicz
e2feec52be Convert PDict into template 2019-07-15 18:54:07 -07:00