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
Tim Wojtulewicz
237c7e4e15
Replace uses of the old List generation code with new template versions
2019-07-15 18:54:07 -07:00
Tim Wojtulewicz
29836b47d0
Convert BaseList/List/PList into templates, including iterator support
2019-07-15 18:54:07 -07:00
Jon Siwek
0058c27bcf
Remove unused BroObj::in_ser_cache member
2019-07-15 17:29:20 -07:00
Jon Siwek
db5b73cb8a
Fix ref-counting bug in EnumType copy ctor
...
Which was used by the new ShallowClone method and causes multiple enum
declarations/definitions to now crash. Such code is not typically
seen in scripts, but being able to define an enum in both .bif and
.bro files has historically been supported.
2019-07-15 12:42:56 -07:00
Zeke Medley
b767d18ee0
Merge branch 'master' of https://github.com/zeek/zeek into topic/zeke/README
2019-07-15 10:27:56 -07:00
Zeke Medley
e8706a9c9f
Add plaintext README file.
2019-07-15 09:15:29 -07:00
Jon Siwek
50e4da74cf
Fix canonification of timestamps with a decisecond multiple
...
Unit tests sometimes use current_time(), which occassionally lands on
a perfect tenth of a second and end up fooling the old canonification
regexp and resulting in output which differs from what's in the
test baseline.
2019-07-12 18:24:56 -07:00
Zeke Medley
14bd9ff923
Fix try.zeek.org link
2019-07-12 18:06:53 -07:00
Zeke Medley
684dec9452
Improve readability of plaintext.
2019-07-12 18:00:58 -07:00
Zeke Medley
20e7a19119
Tone down HTML and improve development section.
2019-07-12 17:47:51 -07:00
Zeke Medley
ef75092875
Use BROKER_PORT.
2019-07-12 16:00:12 -07:00
Johanna Amann
d43af755b5
Merge remote-tracking branch 'origin/topic/timw/json-coverity'
...
* origin/topic/timw/json-coverity:
Fix a couple of resource leaks from JSON changes
2019-07-12 15:02:38 -07:00
Tim Wojtulewicz
5d37428819
Fix a couple of resource leaks from JSON changes
2019-07-12 14:31:40 -07:00
Zeke Medley
db8379edc2
Update baseline to reflect new anonymous function naming.
2019-07-12 14:07:57 -07:00
Johanna Amann
db79041b19
Merge remote-tracking branch 'origin/topic/timw/157-global-attributes'
...
* origin/topic/timw/157-global-attributes:
GH-157: Mark some attributes as not allowed for global variables
Fixes GH-157
2019-07-12 13:45:22 -07:00
Zeke Medley
b83fb5cf95
Sync 3rd party.
2019-07-12 11:12:42 -07:00
Zeke Medley
8d9355eb51
Merge branch 'master' of https://github.com/zeek/zeek into topic/zeke/closures
2019-07-12 10:33:43 -07:00
Zeke Medley
f0798c4b49
Allow serialization of closures over Broker.
...
anonymous-functions, their closures, can now be sent over broker.
In order to send an anonymous function the receiver must have parsed
a definition of the functon, but it need not to have been evaluated.
See testing/btest/language/closure-sending.zeek for an example of how
this can be done.
This also sends their closures as well as the closures of regular
functions.
2019-07-12 10:31:40 -07:00
Johanna Amann
a26bb85ed5
Merge remote-tracking branch 'origin/topic/jsiwek/fix-uncaught-val-cloning-exceptions'
...
* origin/topic/jsiwek/fix-uncaught-val-cloning-exceptions:
Fix uncaught exceptions from Val cloning failures
2019-07-12 08:56:51 -07:00
Jon Siwek
e5e84041b7
Fix uncaught exceptions from Val cloning failures
2019-07-11 16:55:39 -07:00
Tim Wojtulewicz
ec4913ac18
GH-157: Mark some attributes as not allowed for global variables
2019-07-11 13:34:39 -07:00
Johanna Amann
418ab0e33a
Merge remote-tracking branch 'origin/topic/jsiwek/zeekenv-static-local-fix'
...
* origin/topic/jsiwek/zeekenv-static-local-fix:
Fix potential thread safety issue with zeekenv util function
2019-07-11 13:30:50 -07:00
Jon Siwek
a2c7ed5ff6
Merge branch 'topic/hui/dnp3-fix' of https://github.com/hugolin615/zeek
...
* 'topic/hui/dnp3-fix' of https://github.com/hugolin615/zeek :
fixed some bugs on dnp3 analyzer
Adjusted some inconsistent whitespace.
Fixes GH-421
2019-07-11 13:18:58 -07:00
Jon Siwek
cb292af84d
Fix a sign-compare compiler warning
2019-07-11 12:14:27 -07:00
Jon Siwek
9a72a7117d
Fix potential thread safety issue with zeekenv util function
...
Observed segfault accessing the local static std::map of zeekenv() from
a logging thread, but only in non-debug builds using Apple/Clang
compiler, not in a debug build or GCC. Don't quite get this behavior
since static local variable initialization is supposed to be thread-safe
since C++11, but moving to a global static works and is "more efficient"
anyway since there's no longer any run-time overhead.
2019-07-11 11:41:50 -07:00
Johanna Amann
1f329ad541
Merge remote-tracking branch 'origin/topic/timw/150-to-json'
...
* origin/topic/timw/150-to-json:
Update submodules for JSON work
Update unit tests for JSON logger to match new output
Modify JSON log writer to use the external JSON library
Update unit test output to match json.zeek being deprecated and slight format changes to JSON output
Add proper JSON serialization via C++, deprecate json.zeek
Add new method for escaping UTF8 strings for JSON output
Move do_sub method from zeek.bif to StringVal class method
Move record_fields method from zeek.bif to Val class method
Add ToStdString method for StringVal
2019-07-11 11:17:32 -07:00
hugo
7fecf9d667
fixed some bugs on dnp3 analyzer
2019-07-10 20:17:35 -07:00
Jon Siwek
31772b1b96
Remove unused option: chunked_io_buffer_soft_cap
...
Used to be a part of old serialization/communication system.
2019-07-10 18:41:16 -07:00
Jon Siwek
0d34a1c646
Merge remote-tracking branch 'origin/topic/timw/coverity-fixes'
...
* origin/topic/timw/coverity-fixes:
Avoid a null dereference (Coverity-1402816)
Avoid resource leaks (Coverity-1402818, Coverity-1402812)
Avoid null dereference in broker (Coverity-1402824, Coverity-1402814)
Remove unused variable from RecordVal (Coverity-1402820)
2019-07-09 18:28:35 -07:00
Jon Siwek
3ef5d522a2
Updating submodule(s).
...
[nomail]
2019-07-09 17:42:30 -07:00
Zeke Medley
e9bab80c2a
Remove development paragraph.
2019-07-09 11:24:49 -07:00
Tim Wojtulewicz
1af2640f4b
Avoid a null dereference (Coverity-1402816)
2019-07-08 16:22:50 -07:00
Tim Wojtulewicz
69023a0c75
Avoid resource leaks (Coverity-1402818, Coverity-1402812)
2019-07-08 16:22:50 -07:00
Tim Wojtulewicz
4db6d00372
Avoid null dereference in broker (Coverity-1402824, Coverity-1402814)
2019-07-08 16:22:50 -07:00
Tim Wojtulewicz
e390244442
Remove unused variable from RecordVal (Coverity-1402820)
2019-07-08 15:18:13 -07:00
Jon Siwek
002109973d
Improve stability of a unit test
2019-07-03 13:04:57 -07:00
Zeke Medley
aa25a97f36
Update README.
2019-07-03 12:05:22 -07:00
Jon Siwek
723793aa9e
Merge remote-tracking branch 'origin/topic/timw/clang-tidy'
...
* origin/topic/timw/clang-tidy:
Add clang-tidy rule to CMake including a base configuration
2019-07-03 11:51:10 -07:00
Jon Siwek
c03ef308c9
Improve Zeekygen output for long attribute expressions
...
Long inline-literals often don't wrap pleasantly in HTML renders and
we had a few &default or &deprecated attributes whose expressions
evaluate to a value long enough to warrant different formatting or
even truncation.
2019-07-03 11:09:10 -07:00
Jon Siwek
c5c688054c
Merge remote-tracking branch 'origin/topic/johanna/gh-446-rfb'
...
* origin/topic/johanna/gh-446-rfb:
Deprecate rfb_event.
2019-07-03 09:36:12 -07:00
Johanna Amann
c0e3b8c66f
Deprecate rfb_event.
...
Fixes GH-446
2019-07-03 02:15:34 -07:00
Johanna Amann
e382369091
Merge branch 'master' of https://github.com/sfinlon/zeek
...
* 'master' of https://github.com/sfinlon/zeek :
Fix CIF integration and add logging options to intel.log and added comments to code
2019-07-03 01:58:04 -07:00